diff options
author | Albert Astals Cid <aacid@kde.org> | 2012-11-13 23:37:01 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2012-11-13 23:37:01 +0100 |
commit | fa813adc3f7b7ee3cc819f1e0cb85e01f13c2c01 (patch) | |
tree | e82684b9a4fe8fa350b21e68be01f0c41654e1e7 | |
parent | 1969bcd693289eba1138fcaa74a684cb3ff2aefc (diff) |
Remove < 0 ifs for unsigned
-rw-r--r-- | splash/SplashFTFont.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc index e57425eb..2a236252 100644 --- a/splash/SplashFTFont.cc +++ b/splash/SplashFTFont.cc @@ -370,10 +370,6 @@ double SplashFTFont::getGlyphAdvance(int c) } else { gid = (FT_UInt)c; } - if (ff->trueType && gid < 0) { - // skip the TrueType notdef glyph - return -1; - } if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(ff->type1, ff->trueType, aa, enableFreeTypeHinting, enableSlightHinting))) { return -1; @@ -419,10 +415,6 @@ SplashPath *SplashFTFont::getGlyphPath(int c) { } else { gid = (FT_UInt)c; } - if (ff->trueType && gid < 0) { - // skip the TrueType notdef glyph - return NULL; - } if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(ff->type1, ff->trueType, aa, enableFreeTypeHinting, enableSlightHinting))) { return NULL; } |