From: dooglus Date: Tue, 5 Feb 2008 11:40:36 +0000 (+0000) Subject: Only show the 'Properties' (edit waypoint) menu if the value_desc we have is valid... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=832c3b9bbd588cab26d2965d2e159128fc3d2431;p=synfig.git Only show the 'Properties' (edit waypoint) menu if the value_desc we have is valid (ie. not for canvas waypoints). git-svn-id: http://svn.voria.com/code@1592 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 7ebbcdb..d439d9e 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -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)));