Pcbnew: fix Bug #1156193 . Fix compil issues when KICAD_SCRIPTING_WXPYTHON is not enabled and KICAD_SCRIPTING is enabled

This commit is contained in:
jean-pierre charras 2013-03-17 20:04:42 +01:00
parent f227383341
commit 3e8bd5592b
3 changed files with 5 additions and 2 deletions

View File

@ -2241,7 +2241,7 @@ void BOARD::SetViaSizeIndex( unsigned aIndex )
void BOARD::SetTrackWidthIndex( unsigned aIndex )
{
if( m_trackWidthIndex >= m_TrackWidthList.size() )
if( aIndex >= m_TrackWidthList.size() )
m_trackWidthIndex = m_TrackWidthList.size();
else
m_trackWidthIndex = aIndex;

View File

@ -341,7 +341,7 @@ wxString PyErrStringWithTraceback()
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" );
}

View File

@ -17,6 +17,9 @@
#endif
#endif
#include <wx/string.h>
#include <wx/arrstr.h>
/* Function pcbnewInitPythonScripting
* Initializes the Python engine inside pcbnew
*/