diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index ec66cb6c28..1d6ada3d65 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -422,6 +422,12 @@ bool ZONE_FILLER::Fill( std::vector& 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 )