kopia lustrzana https://github.com/inkstitch/inkstitch
rodzic
2f91fba52a
commit
48e5d628a8
10
inkstitch.py
10
inkstitch.py
|
@ -102,9 +102,17 @@ def convert_length(length):
|
||||||
if not units or units == "px":
|
if not units or units == "px":
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
if units == 'pt':
|
||||||
|
value /= 72
|
||||||
|
units = 'in'
|
||||||
|
|
||||||
|
if units == 'pc':
|
||||||
|
value /= 6
|
||||||
|
units = 'in'
|
||||||
|
|
||||||
if units == 'cm':
|
if units == 'cm':
|
||||||
value *= 10
|
value *= 10
|
||||||
units == 'mm'
|
units = 'mm'
|
||||||
|
|
||||||
if units == 'mm':
|
if units == 'mm':
|
||||||
value = value / 25.4
|
value = value / 25.4
|
||||||
|
|
Ładowanie…
Reference in New Issue