Fix a typo and a minor compil warning
This commit is contained in:
parent
4594d88417
commit
9a865b1989
|
@ -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 )
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue