[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - vcl/source

Khaled Hosny khaledhosny at eglug.org
Thu Dec 22 20:25:10 UTC 2016


 vcl/source/gdi/CommonSalLayout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f804c7d0d36997db6bbbcb3b5619adf3f0064d1e
Author: Khaled Hosny <khaledhosny at eglug.org>
Date:   Thu Dec 22 20:31:39 2016 +0200

    Fix glyph Y offset
    
    Typo from 9eb4b14ffa57cd7bbdf0fc43096f5f1e65c8e388.
    
    Change-Id: I542b84cae50d09f2ed58a58ba9de519354a6900d
    Reviewed-on: https://gerrit.libreoffice.org/32352
    Reviewed-by: Khaled Hosny <khaledhosny at eglug.org>
    Tested-by: Khaled Hosny <khaledhosny at eglug.org>

diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 6358a07..0cfda53 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -648,7 +648,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
 
                 nAdvance = std::lround(nAdvance * nXScale);
                 nXOffset = std::lround(nXOffset * nXScale);
-                nYOffset = std::lround(nXOffset * nYScale);
+                nYOffset = std::lround(nYOffset * nYScale);
 
                 Point aNewPos(aCurrPos.X() + nXOffset, aCurrPos.Y() + nYOffset);
                 const GlyphItem aGI(nCharPos, nGlyphIndex, aNewPos, nGlyphFlags,


More information about the Libreoffice-commits mailing list