Fix a typo and a minor compil warning

This commit is contained in:
jean-pierre charras 2021-06-26 19:44:18 +02:00
parent 4594d88417
commit 9a865b1989
2 changed files with 4 additions and 4 deletions

View File

@ -390,12 +390,12 @@ void TransformArcToPolygon( SHAPE_POLY_SET& aCornerBuffer, wxPoint aStart, wxPoi
// The final shape is much better.
double arc_angle_end_deg = arc.GetStartAngle();
if( arc_angle_end_deg != 0 & arc_angle_end_deg != 180.0 )
if( arc_angle_end_deg != 0 && arc_angle_end_deg != 180.0 )
polyshape.Outline(0).Rotate( arc_angle_end_deg * M_PI/180.0, arcSpine.GetPoint( 0 ) );
arc_angle_end_deg = arc.GetEndAngle();
if( arc_angle_end_deg != 0 & arc_angle_end_deg != 180.0 )
if( arc_angle_end_deg != 0 && arc_angle_end_deg != 180.0 )
polyshape.Outline(1).Rotate( arc_angle_end_deg * M_PI/180.0, arcSpine.GetPoint( -1 ) );
if( aErrorLoc == ERROR_OUTSIDE )

View File

@ -157,8 +157,8 @@ DRAWING_TOOL::DRAWING_TOOL() :
m_board( nullptr ),
m_frame( nullptr ),
m_mode( MODE::NONE ),
m_lineWidth( 1 ),
m_inDrawingTool( false )
m_inDrawingTool( false ),
m_lineWidth( 1 )
{
}