Fix compil issue and warning on Windows/msys2

This commit is contained in:
jean-pierre charras 2018-03-23 15:07:38 +01:00
parent 5957bc7dba
commit 6940f92469
2 changed files with 3 additions and 3 deletions

View File

@ -1853,7 +1853,7 @@ SHAPE_POLY_SET::POLYGON SHAPE_POLY_SET::chamferFilletPolygon( CORNER_MODE aMode,
int prevX = KiROUND( nx );
int prevY = KiROUND( ny );
for( unsigned int j = 0; j < segments; j++ )
for( int j = 0; j < segments; j++ )
{
nx = xc + cos( startAngle + ( j + 1 ) * deltaAngle ) * radius;
ny = yc - sin( startAngle + ( j + 1 ) * deltaAngle ) * radius;

View File

@ -256,8 +256,8 @@ void GRID_TRICKS::onKeyDown( wxKeyEvent& ev )
}
else if( ev.GetKeyCode() == ' ' )
{
int row = m_grid->GetCursorRow();
int col = m_grid->GetCursorColumn();
int row = getCursorRow();
int col = getCursorCol();
if( m_grid->IsVisible( row, col ) && toggleCell( row, col ) )
return;