summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2010-04-21 10:43:23 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2010-04-21 10:43:23 (GMT)
commita9cd54ebf66aa51ae56a1b1a7a75423bef59605c (patch)
treede6bad3664fe5aaa8fb5689a1a75e54b9f760b48 /src/gui/text
parent9542c54a295d6151c467f106c43c3c15ff4653cd (diff)
downloadQt-a9cd54ebf66aa51ae56a1b1a7a75423bef59605c.zip
Qt-a9cd54ebf66aa51ae56a1b1a7a75423bef59605c.tar.gz
Qt-a9cd54ebf66aa51ae56a1b1a7a75423bef59605c.tar.bz2
Removed inneccessary QGlyphLayout::offsets initialization.
Reviewed-by: lars
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qfontengine_s60.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qfontengine_s60.cpp b/src/gui/text/qfontengine_s60.cpp
index 1a99c93..e557f56 100644
--- a/src/gui/text/qfontengine_s60.cpp
+++ b/src/gui/text/qfontengine_s60.cpp
@@ -243,8 +243,8 @@ void QFontEngineS60::recalcAdvances(QGlyphLayout *glyphs, QTextEngine::ShaperFla
Q_UNUSED(flags);
for (int i = 0; i < glyphs->numGlyphs; i++) {
const glyph_metrics_t bbox = boundingBox_const(glyphs->glyphs[i]);
- glyphs->advances_x[i] = glyphs->offsets[i].x = bbox.xoff;
- glyphs->advances_y[i] = glyphs->offsets[i].y = bbox.yoff;
+ glyphs->advances_x[i] = bbox.xoff;
+ glyphs->advances_y[i] = bbox.yoff;
}
}