diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index ac03ae029e..69b7756ba9 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -31,9 +31,7 @@ #include #include #include -#include #include -#include #include #include #include @@ -92,13 +90,13 @@ bool ZONE_FILLER::Fill( std::vector& aZones, bool aCheck, wxWindow* aPare std::shared_ptr connectivity = m_board->GetConnectivity(); std::unique_lock lock( connectivity->GetLock(), std::try_to_lock ); + if( !lock ) + return false; + BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings(); m_worstClearance = bds.GetBiggestClearanceValue(); - if( !lock ) - return false; - if( m_progressReporter ) { m_progressReporter->Report( aCheck ? _( "Checking zone fills..." ) @@ -494,7 +492,6 @@ bool ZONE_FILLER::Fill( std::vector& aZones, bool aCheck, wxWindow* aPare m_progressReporter->KeepRefreshing(); } - connectivity->SetProgressReporter( nullptr ); return true; }