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

(cherry picked from commit 9cebea5f11)
This commit is contained in:
Seth Hillbrand 2022-06-28 14:02:01 -07:00
parent 4e7b5b9784
commit f1a054e6af
1 changed files with 2 additions and 2 deletions

View File

@ -153,10 +153,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