summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-02 09:30:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-02 09:31:20 +0100
commit00bf3a4259c1f960eff05b17649cc734c275950f (patch)
treed69c4ec532e3836beb00d2207cd2e10993f3198b /vcl/generic
parente9cb5577f4c1be0f59863ec5ccb68e8794a2f117 (diff)
fix crash with ooo71962-1.odt
script run ends after chunk we are rendering Change-Id: Idbfe11c385db72a80d3d204f8638d67395580d1b
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index 94486a1a8813..e42008e369ab 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -439,7 +439,7 @@ bool HbLayoutEngine::Layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
}
}
- while (nCurrentPos < nBidiEndRunPos)
+ while (nCurrentPos < nBidiEndRunPos && k < pTextLayout->runs.size())
{
int32_t nMinRunPos = nCurrentPos;
int32_t nEndRunPos = std::min(pTextLayout->runs[k].nEnd, nBidiEndRunPos);