summaryrefslogtreecommitdiffstats
path: root/src/helper/geom-pathstroke.cpp
diff options
context:
space:
mode:
authorAlexander Brock <zaibu@lunar-orbit.de>2016-11-29 16:20:13 +0000
committerAlexander Brock <zaibu@lunar-orbit.de>2016-11-29 16:20:13 +0000
commit8ac3baab9da722813ee06a1c53670de6f0669f38 (patch)
tree19f9fa65ffba2f627e3ea5da206fe73b56acea5f /src/helper/geom-pathstroke.cpp
parentMake tolerance a parameter on every level (diff)
downloadinkscape-8ac3baab9da722813ee06a1c53670de6f0669f38.tar.gz
inkscape-8ac3baab9da722813ee06a1c53670de6f0669f38.zip
Handle negative width correctly in tolerance calculation
(bzr r15280.1.6)
Diffstat (limited to 'src/helper/geom-pathstroke.cpp')
-rw-r--r--src/helper/geom-pathstroke.cpp2
1 files changed, 1 insertions, 1 deletions
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 {