mirror of https://github.com/GNOME/gimp.git
Bug 674622 - Misalignment in scaling layers of different sizes
Again bad use of ROUND() on signed values...
This commit is contained in:
parent
f6e64b9ed9
commit
d1cd90c170
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue