From fe81dc9e303d5a499248cc409180b1bfe6583c67 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sat, 29 Sep 2018 20:15:46 +0200 Subject: Fix bug: #1644805 LPE Parallel crashes Inkscape with Text converted to Path --- src/live_effects/lpe-parallel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/live_effects/lpe-parallel.cpp') 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(lpeitem); + item->removeCurrentPathEffect(false); + return; + } SPCurve const *curve = SP_SHAPE(lpeitem)->_curve; A = *(curve->first_point()); -- cgit v1.2.3