[instancer] bug fix in TupleVariationData get_size ()
We need to iterate TupleVariationHeader when calculating the total size
This commit is contained in:
parent
be87200106
commit
c1acfe9966
|
@ -360,9 +360,12 @@ struct TupleVariationData
|
|||
{
|
||||
unsigned total_size = min_size;
|
||||
unsigned count = tupleVarCount;
|
||||
const TupleVariationHeader& tuple_var_header = get_tuple_var_header();
|
||||
const TupleVariationHeader *tuple_var_header = &(get_tuple_var_header());
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
total_size += tuple_var_header.get_size (axis_count) + tuple_var_header.get_data_size ();
|
||||
{
|
||||
total_size += tuple_var_header->get_size (axis_count) + tuple_var_header->get_data_size ();
|
||||
tuple_var_header = &tuple_var_header->get_next (axis_count);
|
||||
}
|
||||
|
||||
return total_size;
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,6 @@
|
|||
FONTS:
|
||||
Comfortaa-Regular-new.ttf
|
||||
Muli-ABC.ttf
|
||||
|
||||
PROFILES:
|
||||
default.txt
|
||||
|
|
Loading…
Reference in New Issue