This commit is contained in:
Behdad Esfahbod 2012-09-04 22:42:17 -04:00
parent b3b89b6658
commit 1d3947a6bd
2 changed files with 2 additions and 2 deletions

View File

@ -1535,7 +1535,7 @@ struct PosLookup : Lookup
{
bool ret = false;
if (unlikely (!c->buffer->len))
if (unlikely (!c->buffer->len || !c->lookup_mask))
return false;
c->set_lookup (*this);

View File

@ -1316,7 +1316,7 @@ struct SubstLookup : Lookup
{
bool ret = false;
if (unlikely (!c->buffer->len))
if (unlikely (!c->buffer->len || !c->lookup_mask))
return false;
c->set_lookup (*this);