From 8ac3baab9da722813ee06a1c53670de6f0669f38 Mon Sep 17 00:00:00 2001 From: Alexander Brock Date: Tue, 29 Nov 2016 17:20:13 +0100 Subject: Handle negative width correctly in tolerance calculation (bzr r15280.1.6) --- src/helper/geom-pathstroke.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helper') diff --git a/src/helper/geom-pathstroke.cpp b/src/helper/geom-pathstroke.cpp index b39bb7f91..50627fd0b 100644 --- a/src/helper/geom-pathstroke.cpp +++ b/src/helper/geom-pathstroke.cpp @@ -1078,7 +1078,7 @@ Geom::Path half_outline( double tolerance) { if (tolerance <= 0) { - if (width > 0) { + if (std::abs(width) > 0) { tolerance = 5.0 * (std::abs(width)/100); } else { -- cgit v1.2.3