Correct SWIG call for board design settings

Use the backend call rather than rely on the naming of internal
variables

Fixes https://gitlab.com/kicad/code/kicad/issues/11924
This commit is contained in:
Seth Hillbrand 2022-06-28 14:02:01 -07:00
parent b7b955e37b
commit 9cebea5f11
1 changed files with 2 additions and 2 deletions

View File

@ -143,10 +143,10 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints)
return SaveBoard(filename,self)
def GetNetClasses(self):
return self.GetDesignSettings().m_NetClasses
return self.GetDesignSettings().GetNetClasses()
def GetCurrentNetClassName(self):
return self.GetDesignSettings().m_CurrentNetClassName
return self.GetDesignSettings().GetCurrentNetClassName()
def GetViasDimensionsList(self):
return self.GetDesignSettings().m_ViasDimensionsList