return with a warning if called with NULL render_func or put_pixel_func.

2007-10-29  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpadaptivesupersample.c
	(gimp_adaptive_supersample_area): return with a warning if 
called
	with NULL render_func or put_pixel_func.


svn path=/trunk/; revision=23985
This commit is contained in:
Sven Neumann 2007-10-29 20:03:25 +00:00 committed by Sven Neumann
parent 96a46d0d70
commit 15d25114ca
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-10-29 Sven Neumann <sven@gimp.org>
* libgimpcolor/gimpadaptivesupersample.c
(gimp_adaptive_supersample_area): return with a warning if called
with NULL render_func or put_pixel_func.
2007-10-29 Sven Neumann <sven@gimp.org>
Fix bug #491272 (no cursor drawn for small brush sizes):

View File

@ -253,6 +253,9 @@ gimp_adaptive_supersample_area (gint x1,
GimpSampleType **block; /* Sample block matrix */
gulong num_samples;
g_return_val_if_fail (render_func != NULL, 0);
g_return_val_if_fail (put_pixel_func != NULL, 0);
/* Initialize color */
gimp_rgba_set (&color, 0.0, 0.0, 0.0, 0.0);