summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2015-01-15 22:18:19 +0000
committerapenner <penner@vaxxine.com>2015-01-15 22:18:19 +0000
commitf43546bcbe3ba88381ebf413fdbd24b92710d6cb (patch)
tree8e667b5fb915a5a9002715457dfbab788fb6c55b
parentallow stroke_width to be scaled even if stroke color is not defined. (Bug 136... (diff)
downloadinkscape-f43546bcbe3ba88381ebf413fdbd24b92710d6cb.tar.gz
inkscape-f43546bcbe3ba88381ebf413fdbd24b92710d6cb.zip
for symbol description, report 'id' if 'title' does not exist.
(bzr r13855)
-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"));
}