Fix a couple of places where TTO_Err_Not_Covered wasn't considered a
authorOwen Taylor <otaylor@redhat.com>
Sat, 26 Jul 2003 02:44:19 +0000 (02:44 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 26 Jul 2003 02:44:19 +0000 (02:44 +0000)
Fri Jul 25 22:25:48 2003  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/ftxgsub.c (Lookup_ContextSubst2,
        Lookup_ChainContextSubst2): Fix a couple of
        places where TTO_Err_Not_Covered wasn't considered
        a successful return from Get_Class -- it means
        use class index 0. (From FreeType, Werner Lemberg,
        2001-08-06)

src/ftxgsub.c

index 837bfe1..148b3a6 100644 (file)
 
     error = Get_Class( &csf2->ClassDef, in->string[in->pos],
                        &classes[0], NULL );
-    if ( error )
+    if ( error && error != TTO_Err_Not_Covered )
       goto End;
     known_classes = 0;
 
 
     error = Get_Class( &ccsf2->InputClassDef, in->string[in->pos],
                        &input_classes[0], NULL );
-    if ( error )
+    if ( error && error != TTO_Err_Not_Covered )
       goto End1;
 
     cscs = &ccsf2->ChainSubClassSet[input_classes[0]];