summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hosken <martin_hosken@sil.org>2012-06-04 13:38:33 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-04 16:30:22 +0200
commit981fd1612fb853287f0bb916b8600de3e587ed64 (patch)
tree29e19d3688390a8662ce44f6b77bbd5f153f0b2a
parent54a908a003db858874d85ca528983882e85e5c2e (diff)
fdo#50169: add another index check
Change-Id: I974ac27ee17219ce3f8a7e5641dbb0098da18f8e
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index 429e700afa50..6416f70be051 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -849,6 +849,7 @@ void GraphiteLayout::expandOrCondense(ImplLayoutArgs &rArgs)
nOffset = static_cast<int>(fExtraPerCluster * nCluster);
int nCharIndex = mvGlyph2Char[i];
assert(nCharIndex > -1);
+ if (nCharIndex < mnMinCharPos) continue;
if (static_cast<size_t>(nCharIndex-mnMinCharPos)
< mvCharDxs.size())
{