summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2015-09-24 13:46:50 +0000
committer~suv <suv-sf@users.sourceforge.net>2015-09-24 13:46:50 +0000
commitf3db50c7e73bccc044da97d927927085209d3007 (patch)
treeb3cf85d9b75ddaee370a06d3211e07d4e365f56f
parentpackaging/macosx: support pango >= 1.38 (modules are built-in now) (diff)
downloadinkscape-f3db50c7e73bccc044da97d927927085209d3007.tar.gz
inkscape-f3db50c7e73bccc044da97d927927085209d3007.zip
Extensions: fix for bug #1459295 (Measure Path: area of CW paths has wrong sign (negative))
(bzr r14384)
-rwxr-xr-xshare/extensions/measure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/measure.py b/share/extensions/measure.py
index e7c91feec..0b01ae9c3 100755
--- a/share/extensions/measure.py
+++ b/share/extensions/measure.py
@@ -199,7 +199,7 @@ class Length(inkex.Effect):
slengths, stotal = csplength(p)
self.group = inkex.etree.SubElement(node.getparent(),inkex.addNS('text','svg'))
elif self.options.type == "area":
- stotal = csparea(p)*factor*self.options.scale
+ stotal = abs(csparea(p)*factor*self.options.scale)
self.group = inkex.etree.SubElement(node.getparent(),inkex.addNS('text','svg'))
else:
xc, yc = cspcofm(p)