Commit 3e8bd559 authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: fix Bug #1156193 . Fix compil issues when KICAD_SCRIPTING_WXPYTHON is...

Pcbnew: fix Bug #1156193 . Fix compil issues when KICAD_SCRIPTING_WXPYTHON is not enabled and KICAD_SCRIPTING is enabled
parent f2273833
...@@ -2241,7 +2241,7 @@ void BOARD::SetViaSizeIndex( unsigned aIndex ) ...@@ -2241,7 +2241,7 @@ void BOARD::SetViaSizeIndex( unsigned aIndex )
void BOARD::SetTrackWidthIndex( unsigned aIndex ) void BOARD::SetTrackWidthIndex( unsigned aIndex )
{ {
if( m_trackWidthIndex >= m_TrackWidthList.size() ) if( aIndex >= m_TrackWidthList.size() )
m_trackWidthIndex = m_TrackWidthList.size(); m_trackWidthIndex = m_TrackWidthList.size();
else else
m_trackWidthIndex = aIndex; m_trackWidthIndex = aIndex;
......
...@@ -341,7 +341,7 @@ wxString PyErrStringWithTraceback() ...@@ -341,7 +341,7 @@ wxString PyErrStringWithTraceback()
wxArrayString res = PyArrayStringToWx( result ); wxArrayString res = PyArrayStringToWx( result );
for( int i = 0; i<res.Count(); i++ ) for( unsigned i = 0; i<res.Count(); i++ )
{ {
err += res[i] + wxT( "\n" ); err += res[i] + wxT( "\n" );
} }
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
#endif #endif
#endif #endif
#include <wx/string.h>
#include <wx/arrstr.h>
/* Function pcbnewInitPythonScripting /* Function pcbnewInitPythonScripting
* Initializes the Python engine inside pcbnew * Initializes the Python engine inside pcbnew
*/ */
......
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