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)