From 1e0eca091634fa3a4c591392b5bfc519c1ad40e3 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 16 Sep 2022 22:31:52 -0400 Subject: [PATCH] Eyeball swig fix after the units changes --- pcbnew/python/swig/units.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/python/swig/units.i b/pcbnew/python/swig/units.i index f28fe0e35b..de4ec380f2 100644 --- a/pcbnew/python/swig/units.i +++ b/pcbnew/python/swig/units.i @@ -33,7 +33,7 @@ %{ def ToMM(iu): if type(iu) in [int,float]: - return float(iu) / float(IU_PER_MM) + return float(iu) / float(pcbIUScale.IU_PER_MM) elif type(iu) in [wxPoint,wxSize,VECTOR2I]: return tuple(map(ToMM,iu)) else: @@ -41,7 +41,7 @@ def FromMM(mm): if type(mm) in [int,float]: - return int(float(mm) * float(IU_PER_MM)) + return int(float(mm) * float(pcbIUScale.IU_PER_MM)) elif type(mm) in [wxPoint,wxSize,VECTOR2I]: return tuple(map(FromMM,mm)) else: