From: buliabyak Date: Sat, 3 Jan 2009 01:36:41 +0000 (+0000) Subject: display filter label, if any, in filtered item description X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5b747d8255ad4bc4443a69be992de8220b6a5ab2;p=inkscape.git display filter label, if any, in filtered item description --- diff --git a/src/sp-item.cpp b/src/sp-item.cpp index b5d9050c6..886c5d4c2 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1047,8 +1047,14 @@ sp_item_description(SPItem *item) g_free (s); s = snew; } - if (SP_OBJECT_STYLE(item) && SP_OBJECT_STYLE(item)->filter.href) { - gchar *snew = g_strdup_printf (_("%s; filtered"), s); + if (SP_OBJECT_STYLE(item) && SP_OBJECT_STYLE(item)->filter.href && SP_OBJECT_STYLE(item)->filter.href->getObject()) { + const gchar *label = SP_OBJECT_STYLE(item)->filter.href->getObject()->label(); + gchar *snew; + if (label) { + snew = g_strdup_printf (_("%s; filtered (%s)"), s, label); + } else { + snew = g_strdup_printf (_("%s; filtered"), s); + } g_free (s); s = snew; }