summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-09-22 16:46:56 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-09-22 16:46:56 +0000
commit02cb93c0417d0c111ecd6d44af72ab3c2fd37cd3 (patch)
tree635b6e7398ff9424fe224dd2998597561491050f /src
parentAllow ask for SVG dragged import method. Also split ask question from one to ... (diff)
downloadinkscape-02cb93c0417d0c111ecd6d44af72ab3c2fd37cd3.tar.gz
inkscape-02cb93c0417d0c111ecd6d44af72ab3c2fd37cd3.zip
Fix a bug if shape is not defined in powerclip
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-powerclip.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live_effects/lpe-powerclip.cpp b/src/live_effects/lpe-powerclip.cpp
index 38a8d02a0..494c6d8a4 100644
--- a/src/live_effects/lpe-powerclip.cpp
+++ b/src/live_effects/lpe-powerclip.cpp
@@ -142,6 +142,9 @@ LPEPowerClip::addInverse (SPItem * clip_data, SPCurve * clipcurve, bool root){
SPObject *elemref = NULL;
if(root) {
Inkscape::XML::Document *xml_doc = document->getReprDoc();
+ if (!SP_IS_SHAPE(clip_data)) {
+ return;
+ }
SP_SHAPE(clip_data)->removeAllPathEffects(true);
Inkscape::XML::Node *clip_path_node = xml_doc->createElement("svg:path");
Inkscape::XML::Node *parent = clip_data->getRepr()->parent();