app: don't try to add a NULL boundary to GimpBrush's boundary cache

This commit is contained in:
Michael Natterer 2011-04-08 21:22:55 +02:00
parent 6e65d1a392
commit 3ab59f1bff
1 changed files with 11 additions and 4 deletions

View File

@ -668,6 +668,13 @@ gimp_brush_transform_boundary (GimpBrush *brush,
width,
height);
/* while the brush mask is always at least 1x1 pixels, its
* outline can correctly be NULL
*
* FIXME: make the cache handle NULL things when it is
* properly implemented
*/
if (boundary)
gimp_brush_cache_add (brush->boundary_cache,
(gpointer) boundary,
*width, *height,