diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-12-05 21:33:59 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-12-05 21:33:59 +0000 |
| commit | 1c8ce1ee6081b4d2f5a111d4c960cedca77634dc (patch) | |
| tree | 22203a0d2a152367622616e52addbacc9afb3670 /src | |
| parent | PDF+LaTeX export: do not apply style to newlines (diff) | |
| download | inkscape-1c8ce1ee6081b4d2f5a111d4c960cedca77634dc.tar.gz inkscape-1c8ce1ee6081b4d2f5a111d4c960cedca77634dc.zip | |
Fix bug:1695649 - Knot LPE has no effect after Simplify or B-Spline
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-knot.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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; i<subpaths.size(); i++){ @@ -524,6 +519,7 @@ collectPathsAndWidths (SPLPEItem const *lpeitem, Geom::PathVector &paths, std::v stroke_widths.push_back(lpeitem->style->stroke_width.computed); } } + c->unref(); } } |
