diff options
Diffstat (limited to 'splash')
-rw-r--r-- | splash/SplashFTFont.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc index aca88671..b785826d 100644 --- a/splash/SplashFTFont.cc +++ b/splash/SplashFTFont.cc @@ -410,7 +410,7 @@ SplashPath *SplashFTFont::getGlyphPath(int c) { ff->face->size = sizeObj; FT_Set_Transform(ff->face, &textMatrix, NULL); slot = ff->face->glyph; - if (ff->codeToGID && c < ff->codeToGIDLen) { + if (ff->codeToGID && c < ff->codeToGIDLen && c >= 0) { gid = ff->codeToGID[c]; } else { gid = (FT_UInt)c; |