ZONE properties: stage commit even if !Settings().m_AutoRefillZones

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8028
This commit is contained in:
Roberto Fernandez Bautista 2021-03-25 20:02:28 +00:00 committed by Jeff Young
parent 69fd0b38ff
commit 0a2c8575ce
1 changed files with 20 additions and 20 deletions

View File

@ -106,9 +106,6 @@ void PCB_EDIT_FRAME::Edit_Zone_Params( ZONE* aZone )
UpdateCopyOfZonesList( pickedList, deletedList, GetBoard() );
// Only auto-refill zones here if in user preferences
if( Settings().m_AutoRefillZones )
{
// refill zones with the new properties applied
std::vector<ZONE*> zones_to_refill;
@ -129,6 +126,9 @@ void PCB_EDIT_FRAME::Edit_Zone_Params( ZONE* aZone )
commit.Stage( pickedList );
// Only auto-refill zones here if in user preferences
if( Settings().m_AutoRefillZones )
{
std::lock_guard<KISPINLOCK> lock( GetBoard()->GetConnectivity()->GetLock() );
if( zones_to_refill.size() )