Only show the 'Properties' (edit waypoint) menu if the value_desc we have is valid...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 5 Feb 2008 11:40:36 +0000 (11:40 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 5 Feb 2008 11:40:36 +0000 (11:40 +0000)
git-svn-id: http://svn.voria.com/code@1592 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/canvasview.cpp

index 7ebbcdb..d439d9e 100644 (file)
@@ -3236,7 +3236,7 @@ CanvasView::on_waypoint_clicked_canvasview(synfigapp::ValueDesc value_desc,
                waypoint_menu->items().push_back(Gtk::Menu_Helpers::MenuElem((size == 1) ? _("_Remove") : strprintf(_("_Remove %d Waypoints"), size),
                         sigc::bind(sigc::ptr_fun(remove_waypoints), waypoint_set, canvas_interface())));
 
-               if (size == 1)
+               if (size == 1 && value_desc.is_valid())
                        waypoint_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(_("_Properties"),
                                sigc::mem_fun(waypoint_dialog,&Gtk::Widget::show)));