[gimp/metadata-browser] libgimpcolor: Add an assert at start of gimp_render_sub_pixel()
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] libgimpcolor: Add an assert at start of gimp_render_sub_pixel()
- Date: Fri, 2 Dec 2011 02:21:51 +0000 (UTC)
commit ec4c4dd3d26d6eec1a05313bb083b79ab61b4f29
Author: Mukund Sivaraman <muks banu com>
Date: Thu Oct 13 10:22:32 2011 +0530
libgimpcolor: Add an assert at start of gimp_render_sub_pixel()
This is to replace the old checks which were removed in
commit ff6727ae6666a9cc1efeba0f080e9f6124aff520.
libgimpcolor/gimpadaptivesupersample.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgimpcolor/gimpadaptivesupersample.c b/libgimpcolor/gimpadaptivesupersample.c
index 0c79d3d..9317b2f 100644
--- a/libgimpcolor/gimpadaptivesupersample.c
+++ b/libgimpcolor/gimpadaptivesupersample.c
@@ -80,6 +80,8 @@ gimp_render_sub_pixel (gint max_depth,
gulong num_samples = 0;
gint cnt;
+ g_return_val_if_fail (render_func != NULL, 0);
+
/* Get offsets for corners */
dx1 = (gdouble) (x1 - sub_pixel_size / 2) / sub_pixel_size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]