Commit f0726870 authored by Nicolas Dufour's avatar Nicolas Dufour Committed by Nicolas Dufour

[Bug #1594113] New extension Deep Ungroup includes hard-coded unit conversion based on 90dpi.

Fixed bugs:
  - https://launchpad.net/bugs/1594113

(bzr r14998)
parent b65581bd
......@@ -63,17 +63,17 @@ class Ungroup(inkex.Effect):
elif s[-2:] == "px":
return float(s[:-2])
elif s[-2:] == "pt":
return float(s[:-2]) * 1.25
return float(s[:-2]) * 1.33
elif s[-2:] == "em":
return float(s[:-2]) * 16
elif s[-2:] == "mm":
return float(s[:-2]) * 3.54
return float(s[:-2]) * 3.779
elif s[-2:] == "pc":
return float(s[:-2]) * 15
return float(s[:-2]) * 16
elif s[-2:] == "cm":
return float(s[:-2]) * 35.43
return float(s[:-2]) * 37.79
elif s[-2:] == "in":
return float(s[:-2]) * 90
return float(s[:-2]) * 96
else:
return 1024
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment