Code

add path effect indication to the description
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 5 Sep 2007 22:08:22 +0000 (22:08 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 5 Sep 2007 22:08:22 +0000 (22:08 +0000)
src/sp-path.cpp

index 53cbb16374a51d8feaa260f4e3a7a99ec3d52118..8aed675900901ec04325d3d708a2e81b6a40058b 100644 (file)
@@ -124,8 +124,13 @@ static gchar *
 sp_path_description(SPItem * item)
 {
     int count = sp_nodes_in_path(SP_PATH(item));
-    return g_strdup_printf(ngettext("<b>Path</b> (%i node)",
-                                    "<b>Path</b> (%i nodes)",count), count);
+    if (SP_SHAPE(item)->path_effect_href) {
+        return g_strdup_printf(ngettext("<b>Path</b> (%i node, path effect)",
+                                        "<b>Path</b> (%i nodes, path effect)",count), count);
+    } else {
+        return g_strdup_printf(ngettext("<b>Path</b> (%i node)",
+                                        "<b>Path</b> (%i nodes)",count), count);
+    }
 }
 
 /**