Fix compil issue and warning on Windows/msys2
This commit is contained in:
parent
5957bc7dba
commit
6940f92469
|
@ -1853,7 +1853,7 @@ SHAPE_POLY_SET::POLYGON SHAPE_POLY_SET::chamferFilletPolygon( CORNER_MODE aMode,
|
||||||
int prevX = KiROUND( nx );
|
int prevX = KiROUND( nx );
|
||||||
int prevY = KiROUND( ny );
|
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;
|
nx = xc + cos( startAngle + ( j + 1 ) * deltaAngle ) * radius;
|
||||||
ny = yc - sin( startAngle + ( j + 1 ) * deltaAngle ) * radius;
|
ny = yc - sin( startAngle + ( j + 1 ) * deltaAngle ) * radius;
|
||||||
|
|
|
@ -256,8 +256,8 @@ void GRID_TRICKS::onKeyDown( wxKeyEvent& ev )
|
||||||
}
|
}
|
||||||
else if( ev.GetKeyCode() == ' ' )
|
else if( ev.GetKeyCode() == ' ' )
|
||||||
{
|
{
|
||||||
int row = m_grid->GetCursorRow();
|
int row = getCursorRow();
|
||||||
int col = m_grid->GetCursorColumn();
|
int col = getCursorCol();
|
||||||
|
|
||||||
if( m_grid->IsVisible( row, col ) && toggleCell( row, col ) )
|
if( m_grid->IsVisible( row, col ) && toggleCell( row, col ) )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue