summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-09-19 20:20:03 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-09-19 20:20:03 +0000
commitd86ea8daa7f0732c62e81e86222b35f5a93a5aa7 (patch)
treee82d3f3d02027b5352ee25809f6b7f9eb45799d4 /src
parentFlushing std::cout (diff)
downloadinkscape-d86ea8daa7f0732c62e81e86222b35f5a93a5aa7.tar.gz
inkscape-d86ea8daa7f0732c62e81e86222b35f5a93a5aa7.zip
Fix bug #1718224 Removing PowerStroke LPE from path in master sets negative stroke width
Diffstat (limited to 'src')
-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 d87f92fcc..6576e6a62 100644
--- a/src/live_effects/lpe-powerstroke.cpp
+++ b/src/live_effects/lpe-powerstroke.cpp
@@ -276,7 +276,7 @@ void LPEPowerStroke::doOnRemove(SPLPEItem const* lpeitem)
}
Inkscape::CSSOStringStream os;
- os << offset_points.median_width() * 2;
+ os << std::abs(offset_points.median_width()) * 2;
sp_repr_css_set_property (css, "stroke-width", os.str().c_str());
sp_repr_css_set_property(css, "fill", "none");