[gimp] app: remove the deleted node from the graph in gimp_warp_tool_undo()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove the deleted node from the graph in gimp_warp_tool_undo()
- Date: Wed, 22 May 2013 20:49:46 +0000 (UTC)
commit f51c8af556918dcd6b9ae0dd2e4497d836c48b33
Author: Michael Natterer <mitch gimp org>
Date: Wed May 22 22:48:37 2013 +0200
app: remove the deleted node from the graph in gimp_warp_tool_undo()
app/tools/gimpwarptool.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index f2f834b..6878510 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -603,12 +603,15 @@ gimp_warp_tool_undo (GimpWarpTool *wt)
gegl_node_connect_to (previous, "output",
wt->render_node, "aux");
- gegl_node_get (to_delete, "stroke", &stroke, NULL);
- gegl_node_get (to_delete, "size", &size, NULL);
+ gegl_node_get (to_delete,
+ "stroke", &stroke,
+ "size", &size,
+ NULL);
if (stroke)
{
gegl_path_get_bounds (stroke, &min_x, &max_x, &min_y, &max_y);
+ g_object_unref (stroke);
bbox.x = min_x - size * 0.5;
bbox.y = min_y - size * 0.5;
@@ -619,6 +622,5 @@ gimp_warp_tool_undo (GimpWarpTool *wt)
gimp_image_map_apply (wt->image_map, &bbox);
}
- g_object_unref (stroke);
- g_object_unref (to_delete);
+ gegl_node_remove_child (wt->graph, to_delete);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]