[gimp] app: fix width and height properties to allow negative sizes



commit 284403d99eddc296a8141d51b957f6d74b8c81a0
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 22 21:45:33 2010 +0200

    app: fix width and height properties to allow negative sizes

 app/display/gimpcanvasrectangle.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpcanvasrectangle.c b/app/display/gimpcanvasrectangle.c
index 1b638c4..c943590 100644
--- a/app/display/gimpcanvasrectangle.c
+++ b/app/display/gimpcanvasrectangle.c
@@ -110,12 +110,14 @@ gimp_canvas_rectangle_class_init (GimpCanvasRectangleClass *klass)
 
   g_object_class_install_property (object_class, PROP_WIDTH,
                                    g_param_spec_double ("width", NULL, NULL,
-                                                        0, GIMP_MAX_IMAGE_SIZE, 0,
+                                                        -GIMP_MAX_IMAGE_SIZE,
+                                                        GIMP_MAX_IMAGE_SIZE, 0,
                                                         GIMP_PARAM_READWRITE));
 
   g_object_class_install_property (object_class, PROP_HEIGHT,
                                    g_param_spec_double ("height", NULL, NULL,
-                                                        0, GIMP_MAX_IMAGE_SIZE, 0,
+                                                        -GIMP_MAX_IMAGE_SIZE,
+                                                        GIMP_MAX_IMAGE_SIZE, 0,
                                                         GIMP_PARAM_READWRITE));
 
   g_object_class_install_property (object_class, PROP_FILLED,



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