From ca8cf14dff6ae03e301556973c4976afc1101baf Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 4 Jan 2022 10:49:01 -0800 Subject: [PATCH] Fix missing FOOTPRINT cast in swig Fixes https://gitlab.com/kicad/code/kicad/issues/10236 --- pcbnew/python/swig/board_item.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/python/swig/board_item.i b/pcbnew/python/swig/board_item.i index 07f3d91ed6..03c8ea4f4f 100644 --- a/pcbnew/python/swig/board_item.i +++ b/pcbnew/python/swig/board_item.i @@ -139,7 +139,7 @@ static PCB_TARGET* Cast_to_PCB_TARGET( BOARD_ITEM* ); return Cast_to_PCB_SHAPE(self) elif ct=="MGRAPHIC": return Cast_to_FP_SHAPE(self) - elif ct=="MODULE": + elif ct=="FOOTPRINT": return Cast_to_FOOTPRINT(self) elif ct=="PCB_GROUP": return Cast_to_PCB_GROUP(self)