[gegl-gtk] Fix test failure. Not certain this is the right fix.



commit bef61fce8e6e5477c9f132389a8f5ec9141c341d
Author: Jon Nordby <jononor gmail com>
Date:   Fri Jul 22 00:56:07 2011 +0200

    Fix test failure. Not certain this is the right fix.

 gegl-gtk/gegl-gtk-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gegl-gtk/gegl-gtk-view.c b/gegl-gtk/gegl-gtk-view.c
index 936dd4d..8c944b0 100644
--- a/gegl-gtk/gegl-gtk-view.c
+++ b/gegl-gtk/gegl-gtk-view.c
@@ -198,8 +198,8 @@ computed_event (GeglNode      *self,
   GeglGtkViewPrivate *priv = GEGL_GTK_VIEW_GET_PRIVATE (view);
   gint x = priv->scale * (rect->x) - priv->x;
   gint y = priv->scale * (rect->y) - priv->y;
-  gint w = ceil (priv->scale * rect->width  + 1);
-  gint h = ceil (priv->scale * rect->height + 1);
+  gint w = ceil (priv->scale * rect->width);
+  gint h = ceil (priv->scale * rect->height);
   GeglRectangle redraw_rect = {x, y, w, h};
 
   g_signal_emit (view, gegl_gtk_view_signals[SIGNAL_REDRAW],
@@ -256,6 +256,7 @@ set_property (GObject      *gobject,
           gegl_gtk_view_repaint (self);
         }
       else
+
         {
           priv->node = NULL;
         }



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