[gegl] gegl_buffer_get: Sanity check scale parameter
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl_buffer_get: Sanity check scale parameter
- Date: Mon, 14 Jan 2013 02:11:47 +0000 (UTC)
commit f123c80145dd6223315d33d68cab25ee0becff74
Author: Daniel Sabo <DanielSabo gmail com>
Date: Sat Jan 12 18:25:11 2013 -0800
gegl_buffer_get: Sanity check scale parameter
gegl/buffer/gegl-buffer-access.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 6aa7e09..e6ec2a0 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1623,6 +1623,7 @@ gegl_buffer_get_unlocked (GeglBuffer *buffer,
gint rowstride,
GeglAbyssPolicy repeat_mode)
{
+ g_return_if_fail (scale > 0.0);
if (format == NULL)
format = buffer->soft_format;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]