Fix XML->binary when LookupOrder is NOT specified

Fix for 495c6831e19ff9992fb801d2930e79c7d13736ae; bringing the intended
behavior documented in that commit.
This commit is contained in:
Behdad Esfahbod 2017-01-08 23:44:10 -08:00
parent 7f9ab7fc7f
commit 80535c224e

View File

@ -679,7 +679,9 @@ class BaseTable(object):
# We make sure that subtables have the same lookup type,
# and that the type is the same as the one set on the
# Lookup object, if any is set.
ref = writer.writeCountReference(table, conv.name, conv.staticSize, table.get(conv.name))
if conv.name not in table:
table[conv.name] = None
ref = writer.writeCountReference(table, conv.name, conv.staticSize, table[conv.name])
writer['LookupType'] = ref
else:
if conv.aux and not eval(conv.aux, None, table):