Minor. We should never get to this branch, but fix it anyway.

This commit is contained in:
Behdad Esfahbod 2016-04-08 23:46:55 -07:00
parent 00ea66f357
commit 851b0db36d
1 changed files with 5 additions and 1 deletions

View File

@ -770,7 +770,11 @@ struct CoverageFormat2
TRACE_SERIALIZE (this);
if (unlikely (!c->extend_min (*this))) return_trace (false);
if (unlikely (!num_glyphs)) return_trace (true);
if (unlikely (!num_glyphs))
{
rangeRecord.len.set (0);
return_trace (true);
}
unsigned int num_ranges = 1;
for (unsigned int i = 1; i < num_glyphs; i++)