[gegl-edit] XML file loading fixed to work with GEGL master
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-edit] XML file loading fixed to work with GEGL master
- Date: Tue, 31 Jul 2012 16:41:12 +0000 (UTC)
commit f31f08f6f10a4b4fa827e38b3141616f03e25c2e
Author: Isaac Wagner <isaacbw src gnome org>
Date: Tue Jul 31 12:39:23 2012 -0400
XML file loading fixed to work with GEGL master
gegl-edit/gegl-edit.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gegl-edit/gegl-edit.c b/gegl-edit/gegl-edit.c
index 695d247..7ff77ef 100644
--- a/gegl-edit/gegl-edit.c
+++ b/gegl-edit/gegl-edit.c
@@ -189,6 +189,9 @@ G_MODULE_EXPORT void activated_open(GtkMenuItem *menuitem, gpointer user_data)
GeglNode* node = GEGL_NODE(list->data);
GraphGtkNode *from = g_hash_table_lookup(hash_table, node);
+ if(!from)
+ break;
+
g_print("from: %s\n", from->name);
if(!gegl_node_has_pad(node, "output"))
@@ -206,6 +209,9 @@ G_MODULE_EXPORT void activated_open(GtkMenuItem *menuitem, gpointer user_data)
for(i = 0; i < num; i++)
{
GraphGtkNode *to = g_hash_table_lookup(hash_table, nodes[i]);
+ if(!to)
+ break;
+
g_print("to: %s\n", to->name);
g_print("Connecting to consumer (%s to %s): output->%s\n", gegl_node_get_operation(node), gegl_node_get_operation(nodes[i]), pads[i]);
graph_gtk_node_connect_to(from, "output", to, pads[i]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]