Plugins: Fix QR code generator shape exception
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9079
This commit is contained in:
parent
08940acf01
commit
16ec6fbec4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue