summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/CommonSalLayout.cxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-12-22 20:31:39 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-12-22 20:24:50 +0000
commitf804c7d0d36997db6bbbcb3b5619adf3f0064d1e (patch)
tree76f32ae94ca411f6946cce93aea1e284eb393723 /vcl/source/gdi/CommonSalLayout.cxx
parent44d04222c6e668795d5abd2c83d7e24153d55de1 (diff)
Fix glyph Y offset
Typo from 9eb4b14ffa57cd7bbdf0fc43096f5f1e65c8e388. Change-Id: I542b84cae50d09f2ed58a58ba9de519354a6900d Reviewed-on: https://gerrit.libreoffice.org/32352 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/source/gdi/CommonSalLayout.cxx')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 6358a073c576..0cfda5375a37 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,