Fix a minor compil and Coverity warning

This commit is contained in:
jean-pierre charras 2022-07-06 13:54:17 +02:00
parent 7f9f37e507
commit 7b28804f67
2 changed files with 2 additions and 2 deletions

View File

@ -75,12 +75,12 @@ SCH_DRAWING_TOOLS::SCH_DRAWING_TOOLS() :
m_lastStroke( 0, PLOT_DASH_TYPE::DEFAULT, COLOR4D::UNSPECIFIED ),
m_lastTextboxStroke( 0, PLOT_DASH_TYPE::DEFAULT, COLOR4D::UNSPECIFIED ),
m_mruPath( wxEmptyString ),
m_lastAutoLabelRotateOnPlacement( false ),
m_inPlaceSymbol( false ),
m_inDrawShape( false ),
m_inPlaceImage( false ),
m_inSingleClickPlace( false ),
m_inTwoClickPlace( false ),
m_lastAutoLabelRotateOnPlacement( false ),
m_inDrawSheet( false )
{
}

View File

@ -2924,7 +2924,7 @@ void PCB_SELECTION_TOOL::GuessSelectionCandidates( GENERAL_COLLECTOR& aCollector
for( int i = 0; i < aCollector.GetCount(); ++i )
{
BOARD_ITEM* item = aCollector[i];
double area;
double area = 0.0;
if( ( item->Type() == PCB_ZONE_T || item->Type() == PCB_FP_ZONE_T )
&& static_cast<ZONE*>( item )->HitTestForEdge( where, MAX_SLOP * pixel / 2 ) )