diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-08-04 09:19:25 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-14 12:48:48 (GMT) |
commit | c8621912c17ed15446da2f25760868bc177808c0 (patch) | |
tree | 64e6351913dbc1b1408189a66837d7051c19d001 /src | |
parent | 9e40703796bf2a2d9b1dbb4ad09c22f9d036c985 (diff) | |
download | Qt-c8621912c17ed15446da2f25760868bc177808c0.zip Qt-c8621912c17ed15446da2f25760868bc177808c0.tar.gz Qt-c8621912c17ed15446da2f25760868bc177808c0.tar.bz2 |
Fix drawing in QStaticText
Also clone the offsets structure into the new QGlyphLayout.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qtextengine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 7f92279..da3a3c0 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -2112,6 +2112,7 @@ void QTextEngine::LayoutData::reallocate(int totalGlyphs) QGlyphLayout QGlyphLayout::clone(char *address) const { QGlyphLayout layout(address, numGlyphs); + memmove(layout.offsets, offsets, numGlyphs * sizeof(QFixedPoint)); memmove(layout.attributes, attributes, numGlyphs * sizeof(HB_GlyphAttributes)); memmove(layout.justifications, justifications, numGlyphs * sizeof(QGlyphJustification)); memmove(layout.advances_y, advances_y, numGlyphs * sizeof(QFixed)); |