[gimp/soc-2011-seamless-clone2] Bug 674622 - Misalignment in scaling layers of different sizes
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] Bug 674622 - Misalignment in scaling layers of different sizes
- Date: Wed, 8 May 2013 15:00:29 +0000 (UTC)
commit 3a8584373f601baa10fe004d479c5117443e442c
Author: Téo Mazars <teo mazars ensimag fr>
Date: Wed Feb 13 10:25:08 2013 +0100
Bug 674622 - Misalignment in scaling layers of different sizes
Again bad use of ROUND() on signed values...
app/core/gimpitem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index 912c3a0..19ad113 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]