Browse Source

Fix compil issue and warning on Windows/msys2

pull/5/merge
jean-pierre charras 8 years ago
parent
commit
6940f92469
  1. 2
      common/geometry/shape_poly_set.cpp
  2. 4
      common/grid_tricks.cpp

2
common/geometry/shape_poly_set.cpp

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

4
common/grid_tricks.cpp

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

Loading…
Cancel
Save