From 832c3b9bbd588cab26d2965d2e159128fc3d2431 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 5 Feb 2008 11:40:36 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); -- 2.7.4