summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorJohn Preston <johnprestonmail@gmail.com>2016-05-02 16:01:06 +0300
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2016-10-10 23:03:49 +0000
commit46804956cbe3cd5ddfb0528ae7d9fa35a031d6d3 (patch)
tree52f34798e4fe64c0934cc5f8678001a3feaf60db /mkspecs
parentdca8678efab24417f13eb3c1544b348129472492 (diff)
Fix possible crash in calculateRightBearingForPreviousGlyph().
LineBreakHelper saves previousGlyph for calculating right bearing of this glyph when it is needed. But between the saving of this glyph and the calculation the fontEngine can change (if we move to the different item). So we need to save the fontEngine together with the glyph and use this saved fontEngine for the saved glyph, while still using the current fontEngine for calculating right bearing of the current glyph. [ChangeLog][QtGui][QTextLine] Fixed a possible UB in the calculation of glyph right bearing when a QTextLine layout is performed. Change-Id: I14c729a1f761a45eaba85754c0b15a27faff7458 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions