projects
/
m17n
/
libotf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f561ba
)
(DEVICE_DELTA): Handle an invalid table.
author
handa
<handa>
Sun, 29 Jun 2008 13:15:21 +0000
(13:15 +0000)
committer
handa
<handa>
Sun, 29 Jun 2008 13:15:21 +0000
(13:15 +0000)
example/otfview.c
patch
|
blob
|
history
diff --git
a/example/otfview.c
b/example/otfview.c
index
79428da
..
8a069f2
100644
(file)
--- a/
example/otfview.c
+++ b/
example/otfview.c
@@
-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