summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/CommonSalLayout.cxx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2017-11-18 22:42:34 +0800
committerMark Hung <marklh9@gmail.com>2017-11-20 13:25:21 +0100
commit51b9042efea0984da96318812124836e292271d7 (patch)
treef8a34860aaf36ff11d1a8885300ef9dbeef64805 /vcl/source/gdi/CommonSalLayout.cxx
parentc40c0a2773cee5402801926bc08db92a94527712 (diff)
tdf#95656 vcl: correct offset for vkrn position
For Bopomofo tone marks to attach to anchor points. Change-Id: I66373790cb80515f4ab0ca9c166f78634eb4081c Reviewed-on: https://gerrit.libreoffice.org/44922 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'vcl/source/gdi/CommonSalLayout.cxx')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 08842283f908..2f110b138a8a 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -580,7 +580,6 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
int32_t nEndRunPos = std::min(pTextLayout->runs[k].nEnd, nBidiEndRunPos);
hb_direction_t aDirection = bRightToLeft ? HB_DIRECTION_RTL : HB_DIRECTION_LTR;
hb_script_t aScript = hb_icu_script_to_script(pTextLayout->runs[k].nCode);
-
// For vertical text, further divide the runs based on character
// orientation.
if (rArgs.mnFlags & SalLayoutFlags::Vertical)
@@ -742,8 +741,8 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
&pHbPositions[i].x_offset ,
&pHbPositions[i].y_offset );
nAdvance = -pHbPositions[i].y_advance;
- nXOffset = pHbPositions[i].y_offset;
- nYOffset = pHbPositions[i].x_offset;
+ nXOffset = -pHbPositions[i].y_offset;
+ nYOffset = -pHbPositions[i].x_offset;
}
else
{