[gimp] Don't access image->width and ->height directly



commit c39dfab87ce035c24ea4334038ddfc9470cd4038
Author: Michael Natterer <mitch gimp org>
Date:   Thu Sep 3 01:03:29 2009 +0200

    Don't access image->width and ->height directly

 app/actions/view-commands.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/actions/view-commands.c b/app/actions/view-commands.c
index 5a2496b..f664244 100644
--- a/app/actions/view-commands.c
+++ b/app/actions/view-commands.c
@@ -715,7 +715,9 @@ view_use_gegl_cmd_callback (GtkAction *action,
 
   g_list_free (layers);
 
-  gimp_image_invalidate (image, 0, 0, image->width, image->height);
+  gimp_image_invalidate (image, 0, 0,
+                         gimp_image_get_width  (image),
+                         gimp_image_get_height (image));
   gimp_image_flush (image);
 }
 



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