diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-03 18:14:04 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-03 18:14:04 +0000 |
| commit | 6f44b427bfd81fb7067f880ce75c03cc77b9046c (patch) | |
| tree | 072a4f611a749a7cd7e70e1e64e5056cd6d906d7 /src | |
| parent | * [INTL:sk] Slovak translation update (diff) | |
| download | inkscape-6f44b427bfd81fb7067f880ce75c03cc77b9046c.tar.gz inkscape-6f44b427bfd81fb7067f880ce75c03cc77b9046c.zip | |
Fix a bug pointed by Ivan Louette about strage fixed angle displazements
(bzr r13663)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-roughen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/live_effects/lpe-roughen.cpp b/src/live_effects/lpe-roughen.cpp index 7ebd61c13..a11a06ce7 100644 --- a/src/live_effects/lpe-roughen.cpp +++ b/src/live_effects/lpe-roughen.cpp @@ -188,6 +188,7 @@ void LPERoughen::doEffect(SPCurve *curve) Geom::Point A1(0, 0); Geom::Point A2(0, 0); Geom::Point A3(0, 0); + bool first = true; while (curve_it1 != curve_endit) { Geom::CubicBezier const *cubic = NULL; A0 = curve_it1->initialPoint(); @@ -197,7 +198,7 @@ void LPERoughen::doEffect(SPCurve *curve) cubic = dynamic_cast<Geom::CubicBezier const *>(&*curve_it1); if (cubic) { A1 = (*cubic)[1]; - if (shiftNodes) { + if (shiftNodes && first) { A1 = (*cubic)[1] + initialMove; } A2 = (*cubic)[2]; @@ -235,6 +236,7 @@ void LPERoughen::doEffect(SPCurve *curve) if(curve_it2 != curve_endit) { ++curve_it2; } + first = false; } if (path_it->closed()) { nCurve->closepath_current(); |
