[cff-common] Fix get_size() for Null object
The special-casing didn't make sense.
This commit is contained in:
parent
c9cc7d5d21
commit
94f7a26322
|
@ -265,7 +265,6 @@ struct CFFIndex
|
|||
|
||||
unsigned int get_size () const
|
||||
{
|
||||
if (this == &Null (CFFIndex)) return 0;
|
||||
if (count)
|
||||
return min_size + offSize.static_size + offset_array_size () + (offset_at (count) - 1);
|
||||
return min_size; /* empty CFFIndex contains count only */
|
||||
|
|
Loading…
Reference in New Issue