summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-18 20:06:37 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-18 20:06:37 +0000
commit5ea50da1809d7c851b97c448588757ec33a0145e (patch)
treef1a669fc9d1647600ced5fa28d8e8c5af3af9cf0 /src/sp-use.cpp
parentupdate to trunk (diff)
parentFix for Bug #1291546 (Linking color profile from Document properties dialog c... (diff)
downloadinkscape-5ea50da1809d7c851b97c448588757ec33a0145e.tar.gz
inkscape-5ea50da1809d7c851b97c448588757ec33a0145e.zip
update to trunk
(bzr r11950.1.300)
Diffstat (limited to 'src/sp-use.cpp')
-rw-r--r--src/sp-use.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 14f51159b..e8fe3687f 100644
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
@@ -220,7 +220,11 @@ const char* SPUse::displayName() const {
gchar* SPUse::description() const {
if (this->child) {
if( SP_IS_SYMBOL( this->child ) ) {
- return g_strdup_printf(_("called %s"), Glib::Markup::escape_text(Glib::ustring( g_dpgettext2(NULL, "Symbol", this->child->title()))).c_str());
+ if (this->child->title()) {
+ return g_strdup_printf(_("called %s"), Glib::Markup::escape_text(Glib::ustring( g_dpgettext2(NULL, "Symbol", this->child->title()))).c_str());
+ } else {
+ return g_strdup_printf(_("called %s"), _("Unnamed Symbol"));
+ }
}
static unsigned recursion_depth = 0;