summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qtextlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index 39a8bb8..c5f0e35 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -1813,7 +1813,7 @@ void QTextLine::layout_helper(int maxGlyphs)
glyph_t glyph = glyphs.glyphs[logClusters[pos - 1]];
glyph_metrics_t gi = fontEngine->boundingBox(glyph);
if (gi.isValid())
- lbh.rightBearing = -qRound(gi.xoff - gi.x - gi.width);
+ lbh.rightBearing = qMax(QFixed(), -(gi.xoff - gi.x - gi.width));
}
if ((sb_or_ws|breakany) && lbh.checkFullOtherwiseExtend(line)) {