From 16ec6fbec4af186316a85791ad79c07ff0b0662e Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 22 Sep 2021 11:15:26 -0400 Subject: [PATCH] Plugins: Fix QR code generator shape exception Fixes https://gitlab.com/kicad/code/kicad/-/issues/9079 --- pcbnew/python/plugins/qrcode_footprint_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/python/plugins/qrcode_footprint_wizard.py b/pcbnew/python/plugins/qrcode_footprint_wizard.py index 4044014f0e..a79662a618 100644 --- a/pcbnew/python/plugins/qrcode_footprint_wizard.py +++ b/pcbnew/python/plugins/qrcode_footprint_wizard.py @@ -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)