Commit b2a5b2f3 authored by Maciej Suminski's avatar Maciej Suminski

Scripting fix.

parent 7a526261
...@@ -54,9 +54,9 @@ class NETCLASS ...@@ -54,9 +54,9 @@ class NETCLASS
{ {
private: private:
// Default values used to init a NETCLASS // Default values used to init a NETCLASS
const static int DEFAULT_CLEARANCE; static const int DEFAULT_CLEARANCE;
const static int DEFAULT_VIA_DRILL; static const int DEFAULT_VIA_DRILL;
const static int DEFAULT_UVIA_DRILL; static const int DEFAULT_UVIA_DRILL;
protected: protected:
wxString m_Name; ///< Name of the net class wxString m_Name; ///< Name of the net class
......
...@@ -86,7 +86,7 @@ bool SaveBoard( wxString& aFileName, BOARD* aBoard, ...@@ -86,7 +86,7 @@ bool SaveBoard( wxString& aFileName, BOARD* aBoard,
{ {
aBoard->m_Status_Pcb &= ~CONNEXION_OK; aBoard->m_Status_Pcb &= ~CONNEXION_OK;
aBoard->SynchronizeNetsAndNetClasses(); aBoard->SynchronizeNetsAndNetClasses();
aBoard->SetCurrentNetClass( aBoard->m_NetClasses.GetDefault()->GetName() ); aBoard->GetDesignSettings().SetCurrentNetClass( NETCLASS::Default );
#if 0 #if 0
wxString header; wxString header;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment