diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-06-11 21:29:07 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-06-11 21:29:07 +0000 |
| commit | cd6b7f49054415a6ad7ad71f36e7987bd8af1657 (patch) | |
| tree | 29414dd14c347745396b6f96c8b2d7a021a49921 /src/selection-describer.cpp | |
| parent | extensions. hpgl input. new import routine by TimeWaster (diff) | |
| download | inkscape-cd6b7f49054415a6ad7ad71f36e7987bd8af1657.tar.gz inkscape-cd6b7f49054415a6ad7ad71f36e7987bd8af1657.zip | |
Fix bug where symbols weren't identified as such
Fixed bugs:
- https://launchpad.net/bugs/1179224
(bzr r12366)
Diffstat (limited to 'src/selection-describer.cpp')
| -rw-r--r-- | src/selection-describer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp index 968a8bd22..dd64e6232 100644 --- a/src/selection-describer.cpp +++ b/src/selection-describer.cpp @@ -38,8 +38,9 @@ #include "sp-spiral.h" static const gchar * -type2term(GType type) +type2term(SPItem *item) { + GType type = G_OBJECT_TYPE( item ); if (type == SP_TYPE_ANCHOR) //TRANSLATORS: "Link" means internet link (anchor) { return C_("Web", "Link"); } @@ -68,6 +69,8 @@ type2term(GType type) if (type == SP_TYPE_TEXT) { return C_("Object", "Text"); } if (type == SP_TYPE_USE) + if (SP_IS_SYMBOL(item->firstChild())) + { return C_("Object", "Symbol"); } // TRANSLATORS: "Clone" is a noun, type of object { return C_("Object", "Clone"); } if (type == SP_TYPE_ARC) @@ -85,7 +88,7 @@ static GSList *collect_terms (GSList *items) { GSList *r = NULL; for (GSList *i = items; i != NULL; i = i->next) { - const gchar *term = type2term (G_OBJECT_TYPE(i->data)); + const gchar *term = type2term ( SP_ITEM(i->data) ); if (term != NULL && g_slist_find (r, term) == NULL) r = g_slist_prepend (r, (void *) term); } |
