Fix additional places where TTO_Err_Not_Covered wasn't considered a
authorOwen Taylor <otaylor@redhat.com>
Sat, 26 Jul 2003 14:35:29 +0000 (14:35 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 26 Jul 2003 14:35:29 +0000 (14:35 +0000)
Sat Jul 26 10:30:24 2003  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/ftxgpos.c: Fix additional places where
        TTO_Err_Not_Covered wasn't considered a successful return
        from Get_Class. (From Qt, Lars Knoll)

src/ftxgpos.c

index c34696c..96eb80e 100644 (file)
 
     error = Get_Class( &ppf2->ClassDef1, in->string[first_pos],
                        &cl1, NULL );
-    if ( error )
+    if ( error && error != TTO_Err_Not_Covered )
       return error;
     error = Get_Class( &ppf2->ClassDef2, in->string[in->pos],
                        &cl2, NULL );
-    if ( error )
+    if ( error && error != TTO_Err_Not_Covered )
       return error;
 
     c1r = &ppf2->Class1Record[cl1];
 
     error = Get_Class( &cpf2->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( &ccpf2->InputClassDef, in->string[in->pos],
                        &input_classes[0], NULL );
-    if ( error )
+    if ( error && error != TTO_Err_Not_Covered )
       goto End1;
 
     cpcs = &ccpf2->ChainPosClassSet[input_classes[0]];