diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-09-29 18:15:46 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-09-29 18:15:46 +0000 |
| commit | fe81dc9e303d5a499248cc409180b1bfe6583c67 (patch) | |
| tree | 8a29985ce782e8ee04090489f2b5bf91b1daadd7 /src/live_effects/lpe-parallel.cpp | |
| parent | CI/AppVeyor: 32-bit got left behind... (diff) | |
| download | inkscape-fe81dc9e303d5a499248cc409180b1bfe6583c67.tar.gz inkscape-fe81dc9e303d5a499248cc409180b1bfe6583c67.zip | |
Fix bug: #1644805
LPE Parallel crashes Inkscape with Text converted to Path
Diffstat (limited to 'src/live_effects/lpe-parallel.cpp')
| -rw-r--r-- | src/live_effects/lpe-parallel.cpp | 6 |
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()); |
