[gimp] Don't access image->width and ->height directly
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Don't access image->width and ->height directly
- Date: Thu, 3 Sep 2009 07:11:57 +0000 (UTC)
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]