Only set the err in CheckGlyph if it hasn't been set by some other part of the process.
diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index 6b0ad90..78c724d 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -287,7 +287,11 @@ bool FTFont::CheckGlyph( const unsigned int characterCode)
FTGlyph* tempGlyph = MakeGlyph( glyphIndex);
if( NULL == tempGlyph)
{
- err = 0x13;
+ if( 0 == err)
+ {
+ err = 0x13;
+ }
+
return false;
}
glyphList->Add( tempGlyph, characterCode);