summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 9ad19679056a..b9240e74f87c 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -595,11 +595,13 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
nYOffset = -pHbPositions[i].y_offset;
}
- Point aNewPos(lround((aCurrPos.X() + nXOffset) * nXScale),
- lround((aCurrPos.Y() + nYOffset) * nYScale));
+ nAdvance *= nXScale;
+ nXOffset *= nXScale;
+ nYOffset *= nYScale;
+
+ Point aNewPos(aCurrPos.X() + nXOffset, aCurrPos.Y() + nYOffset);
const GlyphItem aGI(nCharPos, nGlyphIndex, aNewPos, nGlyphFlags,
- lround(nAdvance * nXScale),
- lround(nXOffset * nXScale));
+ nAdvance, nXOffset);
AppendGlyph(aGI);
aCurrPos.X() += nAdvance;