summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp-use.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 9b38a91c5..3b95e599d 100644
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
@@ -251,6 +251,8 @@ gchar* SPUse::description() const {
if ( dynamic_cast<SPSymbol *>(child) ) {
if (child->title()) {
return g_strdup_printf(_("called %s"), Glib::Markup::escape_text(Glib::ustring( g_dpgettext2(NULL, "Symbol", child->title()))).c_str());
+ } else if (child->getAttribute("id")) {
+ return g_strdup_printf(_("called %s"), Glib::Markup::escape_text(Glib::ustring( g_dpgettext2(NULL, "Symbol", child->getAttribute("id")))).c_str());
} else {
return g_strdup_printf(_("called %s"), _("Unnamed Symbol"));
}