projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show an appropriate error message when the command line --append flag fails to open...
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
synfigapp
/
actions
/
layeractivate.cpp
diff --git
a/synfig-studio/trunk/src/synfigapp/actions/layeractivate.cpp
b/synfig-studio/trunk/src/synfigapp/actions/layeractivate.cpp
index
9b69de7
..
c7fbc30
100644
(file)
--- a/
synfig-studio/trunk/src/synfigapp/actions/layeractivate.cpp
+++ b/
synfig-studio/trunk/src/synfigapp/actions/layeractivate.cpp
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-68,17
+69,12
@@
Action::LayerActivate::get_local_name()const
{
if(!layer)
return _("Activate Layer");
{
if(!layer)
return _("Activate Layer");
- String name;
- if(layer->get_description().empty())
- name=layer->get_local_name();
- else
- name=layer->get_description();
return strprintf("%s '%s'",
new_status
? _("Activate Layer")
: _("Deactivate Layer"),
return strprintf("%s '%s'",
new_status
? _("Activate Layer")
: _("Deactivate Layer"),
-
name
.c_str());
+
layer->get_non_empty_description()
.c_str());
}
Action::ParamVocab
}
Action::ParamVocab