summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-parallel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpe-parallel.cpp')
-rw-r--r--src/live_effects/lpe-parallel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/live_effects/lpe-parallel.cpp b/src/live_effects/lpe-parallel.cpp
index e927d758f..f136d19ba 100644
--- a/src/live_effects/lpe-parallel.cpp
+++ b/src/live_effects/lpe-parallel.cpp
@@ -62,6 +62,12 @@ LPEParallel::~LPEParallel()
void
LPEParallel::doOnApply (SPLPEItem const* lpeitem)
{
+ if (!SP_IS_SHAPE(lpeitem)) {
+ g_warning("LPE parallel can only be applied to shapes (not groups).");
+ SPLPEItem * item = const_cast<SPLPEItem*>(lpeitem);
+ item->removeCurrentPathEffect(false);
+ return;
+ }
SPCurve const *curve = SP_SHAPE(lpeitem)->_curve;
A = *(curve->first_point());