if a box contains an entire row of items with weight(0), and the next
row contains items with weights set, the item count must be correctly
incremented so that the box uses the right items in its calculations
@fix
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9480
cross_min_sum += row->cross_space;
cross_weight_sum += row->cross_weight;
+ item_last += row->item_count;
if (bd->homogeneous)
continue;
calc_size = box_size;
inlist = NULL;
- item_last += row->item_count;
for (; i < item_last; i++)
{
double denom;
else if (EINA_DBL_EQ(row->weight_sum, 0))
{
row->cur_pos += (box_size - row->min_sum) * box_calc[axis].align;
+ i += row->item_count;
}
}