Make sure connectivity is locked for zone filling.

See 1e33928b96
for the original addition and rationale.
This commit is contained in:
Jeff Young 2021-04-25 18:06:00 +01:00
parent d3194cc6db
commit e6bf922a77
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ void ZONE_FILLER_TOOL::CheckAllZones( wxWindow* aCaller, PROGRESS_REPORTER* aRep
else
filler.InstallNewProgressReporter( aCaller, _( "Checking Zones" ), 4 );
std::lock_guard<KISPINLOCK> lock( board()->GetConnectivity()->GetLock() );
if( filler.Fill( toFill, true, aCaller ) )
{
commit.Push( _( "Fill Zone(s)" ), false );