(read_gsub_gpos_table): Set *table->address earlier.
authorhanda <handa>
Mon, 11 Jul 2005 01:01:12 +0000 (01:01 +0000)
committerhanda <handa>
Mon, 11 Jul 2005 01:01:12 +0000 (01:01 +0000)
(OTF_check_features): Set script_list and feature_list according
to gsubp.

src/otfopen.c

index b484003..abb4636 100644 (file)
@@ -1689,6 +1689,7 @@ read_gsub_gpos_table (OTF *otf, OTF_TableInfo *table, int gsubp,
       READ_OFFSET (stream, gsub_gpos->ScriptList.offset);
       READ_OFFSET (stream, gsub_gpos->FeatureList.offset);
       READ_OFFSET (stream, gsub_gpos->LookupList.offset);
+      *table->address = gsub_gpos;
     }
 
   if (! gsub_gpos->ScriptList.Script
@@ -1710,8 +1711,6 @@ read_gsub_gpos_table (OTF *otf, OTF_TableInfo *table, int gsubp,
        }
     }
 
-  if (! *table->address)
-    *table->address = gsub_gpos;
   return gsub_gpos;
 }