summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-04-07 20:19:41 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-04-07 20:19:41 +0000
commit334e6ebbdc346f47014e7b00a5e17d8f60a9c0fa (patch)
tree011ac38c585cbd6d50e428edf7438e89b525313a /src/live_effects
parentcomplementary to rev11175 (diff)
downloadinkscape-334e6ebbdc346f47014e7b00a5e17d8f60a9c0fa.tar.gz
inkscape-334e6ebbdc346f47014e7b00a5e17d8f60a9c0fa.zip
powerstroke: previous and this commit fix extrapolated and miter join behavior for negative widths
(sorry, multitasking error...) (bzr r11177)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpe-powerstroke.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-powerstroke.cpp b/src/live_effects/lpe-powerstroke.cpp
index fc6a46a54..17baa837f 100644
--- a/src/live_effects/lpe-powerstroke.cpp
+++ b/src/live_effects/lpe-powerstroke.cpp
@@ -382,7 +382,7 @@ Geom::Path path_from_piecewise_fix_cusps( Geom::Piecewise<Geom::D2<Geom::SBasis>
// check size of miter
Geom::Point point_on_path = B[prev_i].at1() - rot90(der1) * cusp.width;
Geom::Coord len = distance(*p, point_on_path);
- if (len <= cusp.width * miter_limit) {
+ if (len <= fabs(cusp.width) * miter_limit) {
// miter OK
pb.lineTo(*p);
}