summaryrefslogtreecommitdiff
path: root/gerbonara/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r--gerbonara/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/utils.py b/gerbonara/utils.py
index 12ac787..2bda581 100644
--- a/gerbonara/utils.py
+++ b/gerbonara/utils.py
@@ -84,7 +84,7 @@ class LengthUnit:
if unit == self or unit is None or value is None:
return value
- return value * unit.factor / self.factor
+ return value * unit.this_in_mm / self.this_in_mm
def convert_to(self, unit, value):
""" :py:meth:`.LengthUnit.convert_from` but in reverse. """