diff options
author | John Preston <johnprestonmail@gmail.com> | 2016-05-02 16:01:06 +0300 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2016-10-10 23:03:49 +0000 |
commit | 46804956cbe3cd5ddfb0528ae7d9fa35a031d6d3 (patch) | |
tree | 52f34798e4fe64c0934cc5f8678001a3feaf60db /src/gui/kernel/qtouchdevice_p.h | |
parent | dca8678efab24417f13eb3c1544b348129472492 (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 'src/gui/kernel/qtouchdevice_p.h')
0 files changed, 0 insertions, 0 deletions