Opened 10 years ago

Closed 10 years ago

#8393 closed patch (fixed)

QFont::setWeight called with invalid value

Reported by: ian@… Owned by: stuartm
Priority: minor Milestone: unknown
Component: MythTV - User Interface Library Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

If the font weight in a theme is set to '7' or 'ultrablack', setWeight is called with a value of 100. This results in "ASSERT failure in QFont::setWeight: Weight must be between 0 and 99".

Simply changing the weight value to 99 fixes the error.

Attachments (2)

myth-fontweight.patch (630 bytes) - added by ian@… 10 years ago.
Patch to fix font weight
myth-fontweight-trace.txt (2.6 KB) - added by ian@… 10 years ago.
Backtrace without the patch

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by ian@…

Attachment: myth-fontweight.patch added

Patch to fix font weight

comment:1 Changed 10 years ago by robertm

Resolution: fixed
Status: newclosed

(In [24293]) Fix #8393. setWeight()'s parameters go from 0-99 instead of 1-100. Oh well, fixed now. Patch from Ian.

Changed 10 years ago by ian@…

Attachment: myth-fontweight-trace.txt added

Backtrace without the patch

Note: See TracTickets for help on using tickets.