Plugins: Fix QR code generator shape exception

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9079
This commit is contained in:
Mike Williams 2021-09-22 11:15:26 -04:00
parent 08940acf01
commit 16ec6fbec4
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class QRCodeWizard(FootprintWizardBase.FootprintWizard):
def drawPixelSquareArea( self, layer, size, xposition, yposition):
# creates a FP_SHAPE of rectangle type. The rectangle is square
rectangle = pcbnew.FP_SHAPE(self.module)
rectangle.SetShape(pcbnew.PCB_SHAPE_TYPE_RECT)
rectangle.SetShape(pcbnew.S_RECT)
rectangle.SetWidth( 0 )
rectangle.SetFilled( True )
rectangle.SetLayer(layer)