From 4cc1ced2f3b7ff1ce86dc29ffa55647d687522b2 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 4 Feb 2022 13:44:08 +0000 Subject: [PATCH] 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 --- pcbnew/tools/zone_filler_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/zone_filler_tool.cpp b/pcbnew/tools/zone_filler_tool.cpp index f5905f7161..d4a0108dc5 100644 --- a/pcbnew/tools/zone_filler_tool.cpp +++ b/pcbnew/tools/zone_filler_tool.cpp @@ -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()->m_ZoneFillsDirty = false; } else