[gimp/metadata-browser] app: fix buffer == NULL warning in GimpProjection



commit 139a4d03c1175c5ef299a505c19f20a9af70e6a3
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 26 16:09:29 2012 +0200

    app: fix buffer == NULL warning in GimpProjection

 app/core/gimpprojection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index e70f1e7..dfa89b7 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -56,7 +56,7 @@ static gint64      gimp_projection_get_memsize           (GimpObject      *objec
 static void        gimp_projection_pickable_flush        (GimpPickable    *pickable);
 static GimpImage * gimp_projection_get_image             (GimpPickable    *pickable);
 static const Babl * gimp_projection_get_format           (GimpPickable    *pickable);
-static GeglBuffer  * gimp_projection_get_buffer          (GimpPickable    *pickable);
+static GeglBuffer * gimp_projection_get_buffer           (GimpPickable    *pickable);
 static gboolean    gimp_projection_get_pixel_at          (GimpPickable    *pickable,
                                                           gint             x,
                                                           gint             y,
@@ -708,7 +708,7 @@ gimp_projection_construct (GimpProjection *proj,
   g_return_if_fail (GIMP_IS_PROJECTION (proj));
 
   /* GEGL should really do this for us... */
-  gegl_buffer_clear (proj->buffer, &rect);
+  gegl_buffer_clear (gimp_projection_get_buffer (GIMP_PICKABLE (proj)), &rect);
 
   if (! proj->processor)
     {



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