Composing buffers with zero dimensions (again)

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

 



Hello,

I have just realized that the previous patch was buggy, I am sending the 
correct one...

	Richard Kralovic
Index: gegl/gegl-operation-point-composer.c
===================================================================
RCS file: /cvs/gnome/gegl/gegl/gegl-operation-point-composer.c,v
retrieving revision 1.1
diff -c -r1.1 gegl-operation-point-composer.c
*** gegl/gegl-operation-point-composer.c	9 Aug 2006 00:12:58 -0000	1.1
--- gegl/gegl-operation-point-composer.c	9 Aug 2006 16:04:54 -0000
***************
*** 72,77 ****
--- 72,78 ----
                             "height", result->h,
                             NULL);
  
+     if ( (result->w>0) && (result->h>0) ) {
      buf     = g_malloc (4 * sizeof (gfloat) * gegl_buffer_pixels (output));
      if (aux)
        aux_buf = g_malloc (4 * sizeof (gfloat) * gegl_buffer_pixels (output));
***************
*** 124,129 ****
--- 125,131 ----
      if (aux)
        g_free (aux_buf);
  
+     }
      if (composer->output)
        g_object_unref (composer->output);
      composer->output = output;
Index: gegl/gegl-operation-point-filter.c
===================================================================
RCS file: /cvs/gnome/gegl/gegl/gegl-operation-point-filter.c,v
retrieving revision 1.1
diff -c -r1.1 gegl-operation-point-filter.c
*** gegl/gegl-operation-point-filter.c	9 Aug 2006 00:12:58 -0000	1.1
--- gegl/gegl-operation-point-filter.c	9 Aug 2006 16:04:54 -0000
***************
*** 69,74 ****
--- 69,76 ----
                             "height", result->h,
                             NULL);
  
+     if ( (result->w>0) && (result->h>0) ) {
+ 
      buf  = g_malloc (4 * sizeof (gfloat) * gegl_buffer_pixels (output));
  
        {
***************
*** 103,108 ****
--- 105,111 ----
        }
  
      g_free (buf);
+     }
  
      if (filter->output)
        g_object_unref (filter->output);
_______________________________________________

Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux