+
+ // fix 2256600 (and 2321845) : deleting the last waypoint of an exported valuenode unexported it
+ // if the waypoint's value isn't exported, set its id to be the id of the parent node
+ if (value_node_ref->get_id() == "" && value_node->get_id() != "")
+ {
+ const String id(value_node->get_id());
+ Canvas::LooseHandle canvas(value_node->get_parent_canvas());
+ canvas->remove_value_node(value_node);
+ canvas->add_value_node(value_node_ref, id);
+ }
+