gegl r2825 - in trunk: . gegl/buffer



Author: bersace
Date: Fri Dec 19 20:34:36 2008
New Revision: 2825
URL: http://svn.gnome.org/viewvc/gegl?rev=2825&view=rev

Log:
Add a check on parameters of gegl_buffer_set_extent().

Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-buffer.c

Modified: trunk/gegl/buffer/gegl-buffer.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer.c	(original)
+++ trunk/gegl/buffer/gegl-buffer.c	Fri Dec 19 20:34:36 2008
@@ -294,6 +294,7 @@
 gegl_buffer_set_extent (GeglBuffer          *buffer,
                         const GeglRectangle *extent)
 {
+  g_return_val_if_fail(GEGL_IS_BUFFER(buffer), FALSE);
    (*(GeglRectangle*)gegl_buffer_get_extent (buffer))=*extent;
 
   if ((GeglBufferHeader*)(gegl_buffer_backend (buffer)->header))



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