gegl r2278 - in trunk: . gegl/property-types
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2278 - in trunk: . gegl/property-types
- Date: Thu, 8 May 2008 12:07:53 +0100 (BST)
Author: ok
Date: Thu May 8 11:07:52 2008
New Revision: 2278
URL: http://svn.gnome.org/viewvc/gegl?rev=2278&view=rev
Log:
* gegl/property-types/gegl-vector.c: (gegl_vector_stamp): allocate
some extra space for the brush, to include potential rounding issues
with the roi computation.
Modified:
trunk/ChangeLog
trunk/gegl/property-types/gegl-vector.c
Modified: trunk/gegl/property-types/gegl-vector.c
==============================================================================
--- trunk/gegl/property-types/gegl-vector.c (original)
+++ trunk/gegl/property-types/gegl-vector.c Thu May 8 11:07:52 2008
@@ -608,7 +608,9 @@
{
if (s.buf != NULL)
g_free (s.buf);
- s.buf = g_malloc (4*4* roi.width * roi.height);
+ /* allocate a little bit more, just in case due to rounding errors and
+ * such */
+ s.buf = g_malloc (4*4* (roi.width + 2 ) * (roi.height + 2));
s.radius = radius;
s.valid = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]