Fix crash in raster on X11 when text contains unsupported characters
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Thu, 28 Apr 2011 13:05:08 +0000 (15:05 +0200)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Fri, 29 Apr 2011 07:05:26 +0000 (09:05 +0200)
commitb2db259a32576ac3c6f03f7834920157ea827567
tree98f0552aa0a1f94220ae001bc2ac01a5885730ef
parent544babaaf9d84bc52de1b8e4a7e5e55043125eb7
Fix crash in raster on X11 when text contains unsupported characters

We would assume the font engine was a FT engine and do a static cast
here, which would cause a crash if the box engine was in use instead.

Task-number: QTBUG-17443
Reviewed-by: Samuel
(cherry picked from commit c9c54682bcd23598ac7a8db3b10e9f18c978e268)
src/gui/painting/qtextureglyphcache.cpp