summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2f76e0)
raw | patch | inline | side by side (parent: f2f76e0)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 17 Mar 2006 06:27:57 +0000 (06:27 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 17 Mar 2006 06:27:57 +0000 (06:27 +0000) |
src/sp-item.cpp | patch | blob | history |
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index c40490c41dd24b50c37e0eae3ebc702d3d387dd8..4dbdb127d00a99e456ec5ad5ca403e8b6408d59a 100644 (file)
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
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; <i>clipped</i>", s);
+ g_free (s);
+ s = snew;
+ }
+ if (s && item->mask_ref->getObject()) {
+ gchar *snew = g_strdup_printf ("%s; <i>masked</i>", s);
+ g_free (s);
+ s = snew;
+ }
+ return s;
}
g_assert_not_reached();