summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-14 08:32:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-07 11:25:40 +0000
commitce740afe80a3230dd66b820f428467b82b89dee2 (patch)
tree04ef0e1f6f0444a7bd736255083ccdfb58fd66cb /vcl
parentaadde74084a4813ca2be0e777866d7676e7d6255 (diff)
c#705441# handle invalid FDSelect entry while emitting Type1
Change-Id: I1865eec0dcb29c74e98a6f42f7cf37a2851f8e85
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/fontsubset/cff.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index 55e58979677c..dabc634252da 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -2257,6 +2257,8 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
assert( (nGlyphId >= 0) && (nGlyphId < mnCharStrCount));
// get privdict context matching to the glyph
const int nFDSelect = getFDSelect( nGlyphId);
+ if( nFDSelect < 0)
+ continue;
mpCffLocal = &maCffLocal[ nFDSelect];
// convert the Type2op charstring to its Type1op counterpart
const int nT2Len = seekIndexData( mnCharStrBase, nGlyphId);