From 0b9725d16c8d5204b5e8f6557e97caf5aa328d9e Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 15 Jan 2008 14:47:57 +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@1371 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/layerraise.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/layerraise.cpp b/synfig-studio/trunk/src/synfigapp/actions/layerraise.cpp index c8aba73..e1f6988 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layerraise.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layerraise.cpp @@ -67,20 +67,7 @@ Action::LayerRaise::LayerRaise() synfig::String Action::LayerRaise::get_local_name()const { - String ret; - - if (layers.empty()) - return _("Raise Layer"); - - ret = strprintf("%s '%s'", - (layers.size() == 1 - ? _("Raise Layer") - : _("Raise 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, _("Raise Layer"), _("Raise Layers")); } Action::ParamVocab -- 2.7.4