[gegl-gtk] Fix pointer to out of scope value (bug 723664)



commit a2a88fbe3e47c137aafa746804d216f48441c19b
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Feb 5 13:00:56 2014 +0100

    Fix pointer to out of scope value (bug 723664)

 gegl-gtk/internal/view-helper.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gegl-gtk/internal/view-helper.c b/gegl-gtk/internal/view-helper.c
index 0c7c8ea..cebf487 100644
--- a/gegl-gtk/internal/view-helper.c
+++ b/gegl-gtk/internal/view-helper.c
@@ -316,8 +316,9 @@ trigger_processing(ViewHelper *self, GeglRectangle roi)
 void
 trigger_redraw(ViewHelper *self, GeglRectangle *redraw_rect)
 {
+  GeglRectangle invalid_rect = {0, 0, -1, -1}; /* Indicates full redraw */
+
     if (!redraw_rect) {
-        GeglRectangle invalid_rect = {0, 0, -1, -1}; /* Indicates full redraw */
         redraw_rect = &invalid_rect;
     }
 


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