diff --git a/pcbnew/swig/board.i b/pcbnew/swig/board.i index e9ebb20a15..fcb3fea83b 100644 --- a/pcbnew/swig/board.i +++ b/pcbnew/swig/board.i @@ -147,7 +147,7 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints) Given a netname, return its netcode """ net = self.GetNetsByName()[netname] - return net.GetNet() + return net.GetNetCode() def GetAllNetClasses(self): """