summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-02 09:30:44 +0100
committerAndras Timar <andras.timar@collabora.com>2015-04-04 10:49:29 +0200
commitce7308f8b0bd6aa5844e9bab614047a07a4c1231 (patch)
tree223f3ed871003ded9d4bf3cc88d05328e8aab682 /vcl
parent9bce571c2edd15dfa6c8e04f223b974cebdfc638 (diff)
fix hang with ooo71962-1.odt
script run ends after chunk we are rendering (cherry picked from commit 00bf3a4259c1f960eff05b17649cc734c275950f) Change-Id: Idbfe11c385db72a80d3d204f8638d67395580d1b Reviewed-on: https://gerrit.libreoffice.org/15116 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index bf2eab2c4bbb..1194e70eb13c 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -399,7 +399,9 @@ bool HbLayoutEngine::layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
aScriptSubRuns.push_back(aRun);
nCurrentPos = nEndRunPos;
- aScriptRun.next();
+ bool bHasMore = aScriptRun.next();
+ if (!bHasMore)
+ break;
}
// RTL subruns should be reversed to ensure that final glyph order is