backout 48b28facb0b8 for bustage

This commit is contained in:
Jonathan Kew 2014-02-05 11:07:05 +00:00
parent abd10fb3ae
commit 10a99f426e

View File

@ -581,7 +581,7 @@ bool ProcessGeneric(ots::OpenTypeFile *header, uint32_t signature,
const std::map<uint32_t, OpenTypeTable>::const_iterator it
= table_map.find(Tag(table_parsers[i].tag));
ots::TableAction action = GetTableAction(header, Tag(table_parsers[i].tag));
ots::TableAction action = GetTableAction(it->first);
if (it == table_map.end()) {
if (table_parsers[i].required && action == ots::TABLE_ACTION_SANITIZE) {
return OTS_FAILURE_MSG_TAG("missing required table", table_parsers[i].tag);