Bug 674622 - Misalignment in scaling layers of different sizes

Again bad use of ROUND() on signed values...
This commit is contained in:
Téo Mazars 2013-02-13 10:25:08 +01:00 committed by Michael Natterer
parent f6e64b9ed9
commit d1cd90c170
1 changed files with 2 additions and 2 deletions

View File

@ -1290,8 +1290,8 @@ gimp_item_scale_by_factors (GimpItem *item,
return FALSE;
}
new_offset_x = ROUND (w_factor * (gdouble) private->offset_x);
new_offset_y = ROUND (h_factor * (gdouble) private->offset_y);
new_offset_x = SIGNED_ROUND (w_factor * (gdouble) private->offset_x);
new_offset_y = SIGNED_ROUND (h_factor * (gdouble) private->offset_y);
new_width = ROUND (w_factor * (gdouble) gimp_item_get_width (item));
new_height = ROUND (h_factor * (gdouble) gimp_item_get_height (item));