(DEVICE_DELTA): Handle an invalid table.
authorhanda <handa>
Sun, 29 Jun 2008 13:15:21 +0000 (13:15 +0000)
committerhanda <handa>
Sun, 29 Jun 2008 13:15:21 +0000 (13:15 +0000)
example/otfview.c

index 79428da..8a069f2 100644 (file)
@@ -268,9 +268,10 @@ get_features (OTF_FeatureList *list, FeatureRec *rec)
 }
 
 
-#define DEVICE_DELTA(table, size)                              \
-  (((size) >= (table).StartSize && (size) <= (table).EndSize)  \
-   ? (table).DeltaValue[(size) >= (table).StartSize]           \
+#define DEVICE_DELTA(table, size)                                      \
+  (((table).DeltaValue                                                 \
+    && ((size) >= (table).StartSize && (size) <= (table).EndSize))     \
+   ? (table).DeltaValue[(size) >= (table).StartSize]                   \
    : 0)
 
 void