summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2018-04-23 18:24:32 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2018-04-23 20:40:20 +0200
commit26e83244a31048af4ee8e3b5857ccf1c060a99cf (patch)
tree8ab710bb99881ce268c170c271ba2b9c4805641e /vcl
parent292ff654928fb2cdf6f009f64d78c69272ca7f2d (diff)
Fix thinko
This should be the end of the run we are currently shaping, not not the end of the whole text. Change-Id: Ie9e5f009eadccc50dd04d81c5a6bffaf8ae14524 Reviewed-on: https://gerrit.libreoffice.org/53338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 5f27b744779d..7404984f4620 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -717,7 +717,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
nNextCharPos = pHbGlyphInfos[j++].cluster;
if (nNextCharPos == nCharPos)
- nNextCharPos = rArgs.mnEndCharPos;
+ nNextCharPos = nEndRunPos;
nCharCount = nNextCharPos - nCharPos;
}
}
@@ -740,7 +740,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
nNextCharPos = pHbGlyphInfos[j--].cluster;
if (nNextCharPos == nCharPos)
- nNextCharPos = rArgs.mnEndCharPos;
+ nNextCharPos = nEndRunPos;
nCharCount = nNextCharPos - nCharPos;
}
}