From 84e10c854009f0d795f8a10825cd3da07f2e59b2 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 7 Jan 2008 16:08:40 +0000 Subject: [PATCH] Don't allow the Index parameter of the Duplicate layer to be converted. git-svn-id: http://svn.voria.com/code@1279 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/instance.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/instance.cpp b/synfig-studio/trunk/src/gtkmm/instance.cpp index 51385a0..470e067 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.cpp +++ b/synfig-studio/trunk/src/gtkmm/instance.cpp @@ -1006,6 +1006,8 @@ Instance::make_param_menu(Gtk::Menu *menu,synfig::Canvas::Handle canvas, synfiga // Populate the convert menu by looping through // the ValueNode book and find the ones that are // relevant. + // don't allow the Index parameter of the Duplicate layer to be converted + if (!value_desc.parent_is_layer_param() || value_desc.get_layer()->get_name() != "duplicate" || value_desc.get_param_name() != "index") { Gtk::Menu *convert_menu=manage(new Gtk::Menu()); LinkableValueNode::Book::const_iterator iter; -- 2.7.4