[gegl] gegl:clone: Only use public API
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl:clone: Only use public API
- Date: Fri, 29 Nov 2013 09:54:57 +0000 (UTC)
commit ef52a3dc1e0fd639e3f4885273777e2e8231741c
Author: Daniel Sabo <DanielSabo gmail com>
Date: Thu Nov 28 10:27:15 2013 -0800
gegl:clone: Only use public API
operations/core/clone.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/operations/core/clone.c b/operations/core/clone.c
index c9718cc..901c223 100644
--- a/operations/core/clone.c
+++ b/operations/core/clone.c
@@ -31,7 +31,6 @@ gegl_chant_string (ref, _("Reference"), "ID",
#define GEGL_CHANT_C_FILE "clone.c"
#include "gegl-chant.h"
-#include "graph/gegl-node.h"
#include <math.h>
#include <string.h>
@@ -40,14 +39,14 @@ detect (GeglOperation *operation,
gint x,
gint y)
{
- GeglNode *node = operation->node;
+ GeglRectangle have_rect = gegl_node_get_bounding_box (operation->node);
- if (x >= node->have_rect.x &&
- y >= node->have_rect.y &&
- x < node->have_rect.width &&
- y < node->have_rect.height)
+ if (x >= have_rect.x &&
+ y >= have_rect.y &&
+ x < have_rect.width &&
+ y < have_rect.height)
{
- return node;
+ return operation->node;
}
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]