fix build with Python

This commit is contained in:
Tomasz Włostowski 2017-04-29 13:34:43 +02:00
parent de7f4d7aa4
commit d8018ded0b
2 changed files with 8 additions and 1 deletions

View File

@ -101,7 +101,6 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints)
// std::vector templates
%template(VIA_DIMENSION_Vector) std::vector<VIA_DIMENSION>;
%template(RATSNEST_Vector) std::vector<RATSNEST_ITEM>;
%include class_board.h
%{
#include <class_board.h>

View File

@ -77,8 +77,16 @@ BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat )
bool SaveBoard( wxString& aFileName, BOARD* aBoard )
{
return SaveBoard( aFilename, aBoard, IO_MGR::KICAD );
}
bool SaveBoard( wxString& aFileName, BOARD* aBoard,
IO_MGR::PCB_FILE_T aFormat )
{
aBoard->m_Status_Pcb &= ~CONNEXION_OK;
aBoard->SynchronizeNetsAndNetClasses();
aBoard->GetDesignSettings().SetCurrentNetClass( NETCLASS::Default );