Browse Source

Coverity fixes.

6.0.7
Wayne Stambaugh 4 years ago
parent
commit
1e1da55840
  1. 12
      common/eda_draw_frame.cpp
  2. 4
      eeschema/lib_shape.cpp

12
common/eda_draw_frame.cpp

@ -879,7 +879,17 @@ void EDA_DRAW_FRAME::FocusOnLocation( const wxPoint& aPos )
}
if( centerView )
GetCanvas()->GetView()->SetCenter( aPos, dialogScreenRects );
{
try
{
GetCanvas()->GetView()->SetCenter( aPos, dialogScreenRects );
}
catch( const ClipperLib::clipperException& exc )
{
wxLogError( wxT( "Clipper library error '%s' occurred centering object." ),
exc.what() );
}
}
GetCanvas()->GetViewControls()->SetCrossHairCursorPosition( aPos );
}

4
eeschema/lib_shape.cpp

@ -115,8 +115,8 @@ void LIB_SHAPE::Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
wxPoint start = aTransform.TransformCoordinate( m_start ) + aOffset;
wxPoint end = aTransform.TransformCoordinate( m_end ) + aOffset;
wxPoint center;
int startAngle;
int endAngle;
int startAngle = 0;
int endAngle = 0;
int pen_size = GetEffectivePenWidth( aPlotter->RenderSettings() );
FILL_T fill = aFill ? m_fill : FILL_T::NO_FILL;

Loading…
Cancel
Save