diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 0bd9e340fa..6fe40555a6 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -84,7 +84,8 @@ void ZONE_FILLER::Fill( std::vector aZones ) std::vector toFill; auto connectivity = m_board->GetConnectivity(); - connectivity->Lock(); + if( !connectivity->TryLock() ) + return; // Remove segment zones m_board->m_Zone.DeleteAll();