summaryrefslogtreecommitdiffstats
path: root/src/sp-lpe-item.cpp
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2009-10-05 20:38:16 +0000
committerscislac <scislac@users.sourceforge.net>2009-10-05 20:38:16 +0000
commitd532f515d744ab0dbb1fec8f0fbf0ec588148237 (patch)
treeda5abc6dd34fccd6472c59f111f44bb8e757857d /src/sp-lpe-item.cpp
parentInkscape.pot and translations update. Last ./update_po_files.sh for 0.47! Thi... (diff)
downloadinkscape-d532f515d744ab0dbb1fec8f0fbf0ec588148237.tar.gz
inkscape-d532f515d744ab0dbb1fec8f0fbf0ec588148237.zip
Fix for 419577 by Johan
(bzr r8722)
Diffstat (limited to 'src/sp-lpe-item.cpp')
-rw-r--r--src/sp-lpe-item.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index e4d278e34..49264c684 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -543,7 +543,11 @@ void sp_lpe_item_remove_current_path_effect(SPLPEItem *lpeitem, bool keep_paths)
new_list.remove(lperef); //current lpe ref is always our 'own' pointer from the path_effect_list
std::string r = patheffectlist_write_svg(new_list);
- SP_OBJECT_REPR(lpeitem)->setAttribute("inkscape:path-effect", r.c_str());
+ if (!r.empty()) {
+ SP_OBJECT_REPR(lpeitem)->setAttribute("inkscape:path-effect", r.c_str());
+ } else {
+ SP_OBJECT_REPR(lpeitem)->setAttribute("inkscape:path-effect", NULL);
+ }
if (!keep_paths) {
sp_lpe_item_cleanup_original_path_recursive(lpeitem);