diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-09-16 21:00:19 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-09-16 21:00:19 +0000 |
| commit | d3520b305d8a29fb6dd0c32c782601465a7d677f (patch) | |
| tree | 14b81396f6f384697b6ee7298dc7918973a88829 /src/live_effects/lpe-bendpath.cpp | |
| parent | Fix a bug on uninicialitated variable, that perform diferent results in debug... (diff) | |
| download | inkscape-d3520b305d8a29fb6dd0c32c782601465a7d677f.tar.gz inkscape-d3520b305d8a29fb6dd0c32c782601465a7d677f.zip | |
Fix bug #1658855, bend from clipboard end point get some spike
Diffstat (limited to 'src/live_effects/lpe-bendpath.cpp')
| -rw-r--r-- | src/live_effects/lpe-bendpath.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/live_effects/lpe-bendpath.cpp b/src/live_effects/lpe-bendpath.cpp index 5c1953fda..39714e629 100644 --- a/src/live_effects/lpe-bendpath.cpp +++ b/src/live_effects/lpe-bendpath.cpp @@ -94,7 +94,7 @@ LPEBendPath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd uskeleton = arc_length_parametrization(Piecewise<D2<SBasis> >(bend_path.get_pwd2()),2,.1); uskeleton = remove_short_cuts(uskeleton,.01); n = rot90(derivative(uskeleton)); - n = force_continuity(remove_short_cuts(n,.1)); + n = force_continuity(remove_short_cuts(n,.01)); bend_path.changed = false; } @@ -109,9 +109,10 @@ LPEBendPath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd Interval bboxHorizontal = vertical_pattern.get_value() ? boundingbox_Y : boundingbox_X; Interval bboxVertical = vertical_pattern.get_value() ? boundingbox_X : boundingbox_Y; - + + //+0.1 in x fix bug #1658855 //We use the group bounding box size or the path bbox size to translate well x and y - x-= bboxHorizontal.min(); + x-= bboxHorizontal.min() + 0.1; y-= bboxVertical.middle(); double scaling = uskeleton.cuts.back()/bboxHorizontal.extent(); |
