Scripting fix.

This commit is contained in:
Maciej Suminski 2014-05-15 10:11:17 +02:00
parent 7a526261fb
commit b2a5b2f329
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;