diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-02-28 03:43:21 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Zenotz <jtx@jtx.marker.es> | 2013-02-28 03:43:21 +0000 |
| commit | ecc57932f1e7d157950ada2901f6ea6f3acc8aad (patch) | |
| tree | a709f96bc323c5e7b69d09ece12aefebfb0e14d8 /src/live_effects | |
| parent | BSpline refactor (diff) | |
| download | inkscape-ecc57932f1e7d157950ada2901f6ea6f3acc8aad.tar.gz inkscape-ecc57932f1e7d157950ada2901f6ea6f3acc8aad.zip | |
Fixed closed pc->ea
(bzr r11950.1.40)
Diffstat (limited to 'src/live_effects')
| -rw-r--r-- | src/live_effects/lpe-bspline.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp index 8dc840556..36caf73c5 100644 --- a/src/live_effects/lpe-bspline.cpp +++ b/src/live_effects/lpe-bspline.cpp @@ -34,6 +34,8 @@ LPEBSpline::doEffect(SPCurve * curve) { if(curve->get_segment_count() < 2) return; + using Geom::X; + using Geom::Y; // Make copy of old path as it is changed during processing Geom::PathVector const original_pathv = curve->get_pathvector(); curve->reset(); @@ -94,13 +96,6 @@ LPEBSpline::doEffect(SPCurve * curve) //en posible caso de que se cierre con una linea recta creando un nodo BSPline if (path_it->closed()) { - // if the path is closed, maybe we have to stop a bit earlier because the closing line segment has zerolength. - const Geom::Curve &closingline = path_it->back_closed(); // the closing line segment is always of type Geom::LineSegment. - if (are_near(closingline.initialPoint(), closingline.finalPoint())) { - // closingline.isDegenerate() did not work, because it only checks for *exact* zero length, which goes wrong for relative coordinates and rounding errors... - // the closing line segment has zero-length. So stop before that one! - curve_endit = path_it->end_open(); - } SBasisIn = in->first_segment()->toSBasis(); SBasisEnd = end->first_segment()->toSBasis(); cubic = dynamic_cast<Geom::CubicBezier const*>(&*curve_it1); @@ -223,6 +218,7 @@ LPEBSpline::doEffect(SPCurve * curve) //Todo: remove? //delete SBasisHelper; } + }; //namespace LivePathEffect }; /* namespace Inkscape */ |
