Commit 24d213a7e4cf9b363c6db24a8b58683effcf8f2d

henry 2004-10-03T22:34:10

Only set the err in CheckGlyph if it hasn't been set by some other part of the process.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);