summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-09-14 21:41:07 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-09-14 21:41:07 +0000
commit93124d10d65528cd8db7c81b1609c6533d4912cd (patch)
treecbe14fabe62f4d678054e7a6d55267186e5566a0 /src/sp-shape.cpp
parentFixed min/max confusion bug (diff)
downloadinkscape-93124d10d65528cd8db7c81b1609c6533d4912cd.tar.gz
inkscape-93124d10d65528cd8db7c81b1609c6533d4912cd.zip
fix pasting of LPE's across multiple document; plus a number of small fixes.
(bzr r3745)
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp
index ff0ebf887..511081b4c 100644
--- a/src/sp-shape.cpp
+++ b/src/sp-shape.cpp
@@ -1130,7 +1130,11 @@ LivePathEffectObject *
sp_shape_get_livepatheffectobject(SPShape *shape) {
if (!shape) return NULL;
- return shape->path_effect_ref->lpeobject;
+ if (sp_shape_has_path_effect(shape)) {
+ return shape->path_effect_ref->lpeobject;
+ } else {
+ return NULL;
+ }
}
/**
@@ -1205,6 +1209,10 @@ void sp_shape_remove_path_effect(SPShape *shape)
}
}
+bool sp_shape_has_path_effect(SPShape *shape)
+{
+ return (shape->path_effect_href != NULL);
+}
/*
Local Variables: