From: dooglus Date: Tue, 15 Jan 2008 14:48:07 +0000 (+0000) Subject: Use get_layer_descriptions() to format the layer list rather than including a copy... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=18a803aa9a2798fced5cedce0cd185dbecd1fd5d;p=synfig.git 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 --- 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