[gimp/soc-2009-dynamics] Fixing the scale thing right and in the right place



commit e5ad18cba5a03b5a432092750db8fd552666b895
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Oct 11 13:43:28 2009 +0300

    Fixing the scale thing right and in the right place

 app/core/gimpbrush-transform.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpbrush-transform.c b/app/core/gimpbrush-transform.c
index f8e9335..064dcec 100644
--- a/app/core/gimpbrush-transform.c
+++ b/app/core/gimpbrush-transform.c
@@ -68,10 +68,6 @@ gimp_brush_real_transform_size (GimpBrush *brush,
 
   gimp_brush_transform_bounding_box (brush, &matrix, &x, &y, width, height);
 
-  /*Transform size can not be less than 1 px*/
-  width  = MAX(1, width);
-  height = MAX(1, height);
-
 }
 
 /*
@@ -641,4 +637,8 @@ gimp_brush_transform_bounding_box (GimpBrush         *brush,
 
   *width  = (gint) (ceil  (MAX (MAX (x1, x2), MAX (x3, x4))) - *x);
   *height = (gint) (ceil  (MAX (MAX (y1, y2), MAX (y3, y4))) - *y);
+
+    /*Transform size can not be less than 1 px*/
+  *width  = MAX(1, *width);
+  *height = MAX(1, *height);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]