diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-01-15 22:18:19 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-01-15 22:18:19 +0000 |
| commit | f43546bcbe3ba88381ebf413fdbd24b92710d6cb (patch) | |
| tree | 8e667b5fb915a5a9002715457dfbab788fb6c55b /src | |
| parent | allow stroke_width to be scaled even if stroke color is not defined. (Bug 136... (diff) | |
| download | inkscape-f43546bcbe3ba88381ebf413fdbd24b92710d6cb.tar.gz inkscape-f43546bcbe3ba88381ebf413fdbd24b92710d6cb.zip | |
for symbol description, report 'id' if 'title' does not exist.
(bzr r13855)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-use.cpp | 2 |
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")); } |
