From 18a803aa9a2798fced5cedce0cd185dbecd1fd5d Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 15 Jan 2008 14:48:07 +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@1372 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp b/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp index 4db1009..9db8d74 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp @@ -67,20 +67,7 @@ Action::LayerLower::LayerLower() synfig::String Action::LayerLower::get_local_name()const { - String ret; - - if (layers.empty()) - return _("Lower Layer"); - - ret = strprintf("%s '%s'", - (layers.size() == 1 - ? _("Lower Layer") - : _("Lower Layers")), - (*layers.begin())->get_non_empty_description().c_str()); - - for(std::list::const_iterator iter=++layers.begin(); iter!=layers.end(); ++iter) - ret += strprintf(", '%s'", ((*iter)->get_non_empty_description().c_str())); - return ret; + return get_layer_descriptions(layers, _("Lower Layer"), _("Lower Layers")); } Action::ParamVocab -- 2.7.4