fix FootprintWizardBase.py compatibility with recent code.

This commit is contained in:
jean-pierre charras 2022-05-20 12:57:16 +02:00
parent 57e59a4959
commit e54ba87895
1 changed files with 2 additions and 2 deletions

View File

@ -633,7 +633,7 @@ class FootprintWizardDrawingAids:
@param orientation_degree: text orientation in degrees
"""
text_size = pcbnew.wxSize(size, size)
text_size = pcbnew.VECTOR2I(size, size)
self.module.Reference().SetPos0(self.TransformPoint(x, y))
self.module.Reference().SetPosition(
@ -650,7 +650,7 @@ class FootprintWizardDrawingAids:
@param size: the text size (in both directions)
@param orientation_degree: text orientation in degrees
"""
text_size = pcbnew.wxSize(size, size)
text_size = pcbnew.VECTOR2I(size, size)
self.module.Value().SetPos0(self.TransformPoint(x, y))
self.module.Value().SetPosition(self.module.Value().GetPos0())