diff options
Diffstat (limited to 'vcl/source/fontsubset/sft.cxx')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 88c818e44e4e..9f1e387aa9c6 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -1773,6 +1773,9 @@ int GetTTGlyphComponents(TrueTypeFont *ttf, sal_uInt32 glyphID, std::vector< sal const sal_uInt8* glyf = getTable(ttf, O_glyf); const sal_uInt8* ptr = glyf + ttf->goffsets[glyphID]; + const sal_uInt8* nptr = glyf + ttf->goffsets[glyphID+1]; + if (nptr <= ptr) + return 0; glyphlist.push_back( glyphID ); |