mirror of https://github.com/GNOME/gimp.git
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:
parent
96a46d0d70
commit
15d25114ca
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue