diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-07-24 15:58:34 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-07-24 15:58:34 +0000 |
| commit | 325f658295ffa45c23c681a6a96a76acf232ef29 (patch) | |
| tree | 6433785dbe7f788cac8f50b6c0fdee1e375ae4c7 /src | |
| parent | Fises to toggle button and coding style (diff) | |
| download | inkscape-325f658295ffa45c23c681a6a96a76acf232ef29.tar.gz inkscape-325f658295ffa45c23c681a6a96a76acf232ef29.zip | |
Fixed a bug on roughen LPE on open paths
(bzr r15022)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-roughen.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/live_effects/lpe-roughen.cpp b/src/live_effects/lpe-roughen.cpp index 14137b043..13f2b7b51 100644 --- a/src/live_effects/lpe-roughen.cpp +++ b/src/live_effects/lpe-roughen.cpp @@ -229,7 +229,7 @@ void LPERoughen::doEffect(SPCurve *curve) nCurve->lineto(curve_it1->finalPoint()); } last_move = Geom::Point(0, 0); - double length = curve_it1->length(0.001); + double length = curve_it1->length(0.01); std::size_t splits = 0; if (method == DM_SEGMENTS) { splits = segments; @@ -354,9 +354,6 @@ SPCurve const * LPERoughen::addNodesAndJitter(Geom::Curve const * A, Geom::Point point_a3 = seg1[3] + point_a3; ray.setPoints(prev,A->initialPoint()); point_a1 = A->initialPoint() + Geom::Point::polar(ray.angle(), max_lenght); - if(prev == Geom::Point(0,0)){ - point_a1 = randomize(max_lenght); - } if(last){ Geom::Path b2(point_b3); b2.appendNew<Geom::LineSegment>(point_a3); |
