From: buliabyak Date: Fri, 17 Mar 2006 06:27:57 +0000 (+0000) Subject: describe clipped/masked objects in statusbar X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f1ba111f2d535e0086e12b665bac35c26bc21f3a;p=inkscape.git describe clipped/masked objects in statusbar --- diff --git a/src/sp-item.cpp b/src/sp-item.cpp index c40490c41..4dbdb127d 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -788,7 +788,18 @@ sp_item_description(SPItem *item) g_assert(SP_IS_ITEM(item)); if (((SPItemClass *) G_OBJECT_GET_CLASS(item))->description) { - return ((SPItemClass *) G_OBJECT_GET_CLASS(item))->description(item); + gchar *s = ((SPItemClass *) G_OBJECT_GET_CLASS(item))->description(item); + if (s && item->clip_ref->getObject()) { + gchar *snew = g_strdup_printf ("%s; clipped", s); + g_free (s); + s = snew; + } + if (s && item->mask_ref->getObject()) { + gchar *snew = g_strdup_printf ("%s; masked", s); + g_free (s); + s = snew; + } + return s; } g_assert_not_reached();