diff --git a/src/ant/ant/antPlugin.cc b/src/ant/ant/antPlugin.cc index 6aa3af2a1..eebe762f5 100644 --- a/src/ant/ant/antPlugin.cc +++ b/src/ant/ant/antPlugin.cc @@ -218,8 +218,8 @@ PluginDeclaration::update_current_template () std::vector menu_entries = mp->menu ()->group ("ruler_mode_group"); for (std::vector::const_iterator m = menu_entries.begin (); m != menu_entries.end (); ++m) { - lay::Action action = mp->menu ()->action (*m); - action.set_title (m_templates [m_current_template].title ()); + lay::Action *action = mp->menu ()->action (*m); + action->set_title (m_templates [m_current_template].title ()); } if (m_templates.size () > 1) { @@ -251,8 +251,8 @@ PluginDeclaration::update_menu () if (m_current_template >= 0 && m_current_template < int (m_templates.size ())) { std::vector menu_entries = mp->menu ()->group ("ruler_mode_group"); for (std::vector::const_iterator m = menu_entries.begin (); m != menu_entries.end (); ++m) { - lay::Action action = mp->menu ()->action (*m); - action.set_title (m_templates [m_current_template].title ()); + lay::Action *action = mp->menu ()->action (*m); + action->set_title (m_templates [m_current_template].title ()); } } @@ -269,12 +269,12 @@ PluginDeclaration::update_menu () if (m_templates.size () > 1) { int it = 0; for (std::vector