vcl/source/gdi/CommonSalLayout.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 9eb4b14ffa57cd7bbdf0fc43096f5f1e65c8e388 Author: Khaled Hosny <khaledho...@eglug.org> Date: Tue Dec 20 01:36:34 2016 +0200 tdf#103765: Round positions instead of truncating Change-Id: Id0505163e10bb4c76970f2f96af568da453d3d05 Reviewed-on: https://gerrit.libreoffice.org/32211 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx index 956bad0..1e24223 100644 --- a/vcl/source/gdi/CommonSalLayout.cxx +++ b/vcl/source/gdi/CommonSalLayout.cxx @@ -615,9 +615,9 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs) nYOffset = -pHbPositions[i].y_offset; } - nAdvance *= nXScale; - nXOffset *= nXScale; - nYOffset *= nYScale; + nAdvance = std::lround(nAdvance * nXScale); + nXOffset = std::lround(nXOffset * nXScale); + nYOffset = std::lround(nXOffset * nYScale); Point aNewPos(aCurrPos.X() + nXOffset, aCurrPos.Y() + nYOffset); const GlyphItem aGI(nCharPos, nGlyphIndex, aNewPos, nGlyphFlags, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits