Don't commit zone refill if there were no changes.

Fixes https://gitlab.com/kicad/code/kicad/issues/10085
This commit is contained in:
Jeff Young 2021-12-22 15:15:25 +00:00
parent 9af33cdfe8
commit 77239591c0
1 changed files with 6 additions and 0 deletions

View File

@ -422,6 +422,12 @@ bool ZONE_FILLER::Fill( std::vector<ZONE*>& aZones, bool aCheck, wxWindow* aPare
if( dlg.ShowModal() == wxID_CANCEL )
return false;
}
else
{
// No need to commit something that hasn't changed (and committing will set
// the modified flag).
return false;
}
}
if( m_progressReporter )