From 7529eb1812ba17c257541eca99cd0f12288cc235 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 19 Nov 2021 13:38:40 -0800 Subject: [PATCH] SWIG out connected item vector for use Fixes https://gitlab.com/kicad/code/kicad/issues/8566 --- pcbnew/python/swig/board_connected_item.i | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/python/swig/board_connected_item.i b/pcbnew/python/swig/board_connected_item.i index 90a65fe905..d1be39d8c4 100644 --- a/pcbnew/python/swig/board_connected_item.i +++ b/pcbnew/python/swig/board_connected_item.i @@ -29,9 +29,9 @@ #include %} -%typemap(out) std::list { - std::list list = $1; - std::list::const_iterator iter; +%typemap(out) std::vector { + std::vector list = $1; + std::vector::const_iterator iter; PyObject * retval = $result = PyList_New(0); @@ -50,7 +50,7 @@ case PCB_ARC_T: case PCB_VIA_T: obj = SWIG_NewPointerObj( SWIG_as_voidptr(aItem), - SWIGTYPE_p_TRACK, + SWIGTYPE_p_PCB_TRACK, 0 | 0 ); break;