summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-powerstroke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpe-powerstroke.cpp')
-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);
}