From b2a5b2f3293dbc2f932edd6e5f662935ecd228ea Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 15 May 2014 10:11:17 +0200 Subject: [PATCH] Scripting fix. --- pcbnew/class_netclass.h | 6 +++--- pcbnew/scripting/pcbnew_scripting_helpers.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/class_netclass.h b/pcbnew/class_netclass.h index 7085b3ebe3..0d79013df8 100644 --- a/pcbnew/class_netclass.h +++ b/pcbnew/class_netclass.h @@ -54,9 +54,9 @@ class NETCLASS { private: // Default values used to init a NETCLASS - const static int DEFAULT_CLEARANCE; - const static int DEFAULT_VIA_DRILL; - const static int DEFAULT_UVIA_DRILL; + static const int DEFAULT_CLEARANCE; + static const int DEFAULT_VIA_DRILL; + static const int DEFAULT_UVIA_DRILL; protected: wxString m_Name; ///< Name of the net class diff --git a/pcbnew/scripting/pcbnew_scripting_helpers.cpp b/pcbnew/scripting/pcbnew_scripting_helpers.cpp index 42a0a14391..62b21b3df1 100644 --- a/pcbnew/scripting/pcbnew_scripting_helpers.cpp +++ b/pcbnew/scripting/pcbnew_scripting_helpers.cpp @@ -86,7 +86,7 @@ bool SaveBoard( wxString& aFileName, BOARD* aBoard, { aBoard->m_Status_Pcb &= ~CONNEXION_OK; aBoard->SynchronizeNetsAndNetClasses(); - aBoard->SetCurrentNetClass( aBoard->m_NetClasses.GetDefault()->GetName() ); + aBoard->GetDesignSettings().SetCurrentNetClass( NETCLASS::Default ); #if 0 wxString header;