summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qtextureglyphcache.cpp
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-11-20 04:29:51 (GMT)
committerBill King <bill.king@nokia.com>2009-11-20 04:29:51 (GMT)
commit5b1a07e9ccf0a5139273b447e2b2fda6564a506a (patch)
tree6ad6fc7836747044713ade6e75d7230b848ba46e /src/gui/painting/qtextureglyphcache.cpp
parent0186faea383f3f8223bffd1844e5a47ca22770a5 (diff)
parentea0f526ac3a7daef5d4ebff2373a01d4088e28c3 (diff)
downloadQt-5b1a07e9ccf0a5139273b447e2b2fda6564a506a.zip
Qt-5b1a07e9ccf0a5139273b447e2b2fda6564a506a.tar.gz
Qt-5b1a07e9ccf0a5139273b447e2b2fda6564a506a.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/gui/painting/qtextureglyphcache.cpp')
-rw-r--r--src/gui/painting/qtextureglyphcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtextureglyphcache.cpp b/src/gui/painting/qtextureglyphcache.cpp
index a192e87..46fbaa9 100644
--- a/src/gui/painting/qtextureglyphcache.cpp
+++ b/src/gui/painting/qtextureglyphcache.cpp
@@ -101,7 +101,7 @@ void QTextureGlyphCache::populate(const QTextItemInt &ti,
Coord c = { 0, 0, // will be filled in later
glyph_width,
glyph_height, // texture coords
- metrics.x.truncate(),
+ metrics.x.round().truncate(),
-metrics.y.truncate() }; // baseline for horizontal scripts
listItemCoordinates.insert(glyph, c);