diff options
author | Teemu Katajisto <teemu.katajisto@digia.com> | 2012-10-12 10:58:38 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-21 14:29:10 +0100 |
commit | a2bc19c0ad67b948df624770498f76441bf6da91 (patch) | |
tree | a50a76ed07cbacc89aeefa7a6cd774275d50698f /src/corelib/arch/qatomic_mips.h | |
parent | 96361d82c986e65740dd0c6b42cb725c15a17eea (diff) |
Mac: fix invalid context in imageForGlyph
The bounding rectangle may have negative width or height when a
graphics view with text is rotated in certain angles. Make
sure that the image width and height are positive, otherwise the
context will be null and the following messages can be seen in
test logs:
<Error>: CGContextSetFontSize: invalid context 0x0
Change-Id: I10f83f6909035fb3c4ac456123cf1922eaea7c73
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/corelib/arch/qatomic_mips.h')
0 files changed, 0 insertions, 0 deletions