Log an undo item when filling zones.

If we wanted to put it into the parent's undo item, then the *parent*
would need to not start a new undo record.  Not starting one in the
zone filler tries to add it to the *previous* change, not to the parent
change.

Fixes https://gitlab.com/kicad/code/kicad/issues/10091
This commit is contained in:
Jeff Young 2022-02-04 13:44:08 +00:00
parent 93c3e6bd16
commit 4cc1ced2f3
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void ZONE_FILLER_TOOL::CheckAllZones( wxWindow* aCaller, PROGRESS_REPORTER* aRep
if( filler.Fill( toFill, true, aCaller ) )
{
board()->GetConnectivity()->Build( board() );
commit.Push( _( "Fill Zone(s)" ), false );
commit.Push( _( "Fill Zone(s)" ) );
getEditFrame<PCB_EDIT_FRAME>()->m_ZoneFillsDirty = false;
}
else