[gegl] buffer-cache: fix accidental recursive call to get_bouding_box
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer-cache: fix accidental recursive call to get_bouding_box
- Date: Mon, 16 Jul 2012 11:53:10 +0000 (UTC)
commit 38f5538e29b81f891c1541cdad6b635ba1750a56
Author: Michael Murà <batolettre gmail com>
Date: Mon Jul 16 20:25:04 2012 +0900
buffer-cache: fix accidental recursive call to get_bouding_box
operations/workshop/buffer-cache.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/operations/workshop/buffer-cache.c b/operations/workshop/buffer-cache.c
index 324fb5a..d6ff855 100644
--- a/operations/workshop/buffer-cache.c
+++ b/operations/workshop/buffer-cache.c
@@ -35,19 +35,12 @@ gegl_chant_pointer (buffer, _("Cache buffer"),
static GeglRectangle
get_bounding_box (GeglOperation *operation)
{
- GeglRectangle result = {0,0,0,0};
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
if (o->buffer)
- {
- result = *gegl_buffer_get_extent (GEGL_BUFFER (o->buffer));
- }
+ return *gegl_buffer_get_extent (GEGL_BUFFER (o->buffer));
else
- {
- result = GEGL_OPERATION_GET_CLASS (operation)->get_bounding_box (operation);
- }
-
- return result;
+ return *gegl_operation_source_get_bounding_box (operation, "input");
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]