From f8a142fdcee885179e4af0b46160887ae665c5f8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 15 Jan 2008 14:48:20 +0000 Subject: [PATCH] Use get_layer_descriptions() to format the layer list rather than including a copy of the code here. git-svn-id: http://svn.voria.com/code@1373 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/layerremove.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/layerremove.cpp b/synfig-studio/trunk/src/synfigapp/actions/layerremove.cpp index 4f08c3f..1be9549 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layerremove.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layerremove.cpp @@ -66,20 +66,7 @@ Action::LayerRemove::LayerRemove() synfig::String Action::LayerRemove::get_local_name()const { - String ret; - - if (layer_list.empty()) - return _("Remove Layer"); - - ret = strprintf("%s '%s'", - (layer_list.size() == 1 - ? _("Remove Layer") - : _("Remove Layers")), - layer_list.begin()->first->get_non_empty_description().c_str()); - - for(std::list >::const_iterator iter=++layer_list.begin(); iter!=layer_list.end(); ++iter) - ret += strprintf(", '%s'", (iter->first->get_non_empty_description().c_str())); - return ret; + return get_layer_descriptions(layer_list, _("Remove Layer"), _("Remove Layers")); } Action::ParamVocab -- 2.7.4