diff options
author | Herbert Dürr <hdu@apache.org> | 2012-06-14 08:32:39 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2012-06-14 08:32:39 +0000 |
commit | 3692b4392cfbc05cef4a2073e86d5033589a3aee (patch) | |
tree | b8a095b001144bf9c4b92c58786745d48edb2293 /vcl/source | |
parent | 872abe4d7d1d05ed543804b03628bd26db00e44e (diff) |
#c705441# handle invalid FDSelect entry while emitting Type1
Notes
Notes:
merged as: ce740afe80a3230dd66b820f428467b82b89dee2
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index 16c5c8eb2455..d5e50152bf70 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -2317,6 +2317,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); |