projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rearranged a bit, like for the Add ValueNode in r1299. Use type checking for the...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
layer.h
diff --git
a/synfig-core/trunk/src/synfig/layer.h
b/synfig-core/trunk/src/synfig/layer.h
index
3e332d9
..
7971fcb
100644
(file)
--- a/
synfig-core/trunk/src/synfig/layer.h
+++ b/
synfig-core/trunk/src/synfig/layer.h
@@
-322,6
+322,9
@@
public:
//! \writeme
void set_description(const String& x);
//! \writeme
void set_description(const String& x);
+ //! Returns the layer's description if it's not empty, else its local name
+ const String get_non_empty_description()const { return get_description().empty() ? get_local_name() : get_description(); }
+
/*
-- ** -- V I R T U A L F U N C T I O N S -----------------------------------
*/
/*
-- ** -- V I R T U A L F U N C T I O N S -----------------------------------
*/