From f43546bcbe3ba88381ebf413fdbd24b92710d6cb Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Thu, 15 Jan 2015 17:18:19 -0500 Subject: for symbol description, report 'id' if 'title' does not exist. (bzr r13855) --- src/sp-use.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(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")); } -- cgit v1.2.3