From 1c8ce1ee6081b4d2f5a111d4c960cedca77634dc Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 5 Dec 2017 22:33:59 +0100 Subject: Fix bug:1695649 - Knot LPE has no effect after Simplify or B-Spline --- src/live_effects/lpe-knot.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp index b21181ffc..b3918b6ab 100644 --- a/src/live_effects/lpe-knot.cpp +++ b/src/live_effects/lpe-knot.cpp @@ -510,12 +510,7 @@ collectPathsAndWidths (SPLPEItem const *lpeitem, Geom::PathVector &paths, std::v } } else if (SP_IS_SHAPE(lpeitem)) { - SPCurve * c = NULL; - if (SP_IS_PATH(lpeitem)) { - c = SP_PATH(lpeitem)->get_curve_for_edit(); - } else { - c = SP_SHAPE(lpeitem)->getCurve(); - } + SPCurve * c = SP_SHAPE(lpeitem)->getCurve(); if (c) { Geom::PathVector subpaths = pathv_to_linear_and_cubic_beziers(c->get_pathvector()); for (unsigned i=0; istyle->stroke_width.computed); } } + c->unref(); } } -- cgit v1.2.3