Skip to content
Snippets Groups Projects
Commit 4a55a85a authored by Roberto Fernandez Bautista's avatar Roberto Fernandez Bautista
Browse files

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

parent 42c6af4b
No related branches found
No related tags found
No related merge requests found
Pipeline #277660432 passed
......@@ -106,29 +106,29 @@ 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;
for( unsigned i = 0; i < pickedList.GetCount(); ++i )
{
// refill zones with the new properties applied
std::vector<ZONE*> zones_to_refill;
ZONE* zone = dyn_cast<ZONE*>( pickedList.GetPickedItem( i ) );
for( unsigned i = 0; i < pickedList.GetCount(); ++i )
if( zone == nullptr )
{
ZONE* zone = dyn_cast<ZONE*>( pickedList.GetPickedItem( i ) );
if( zone == nullptr )
{
wxASSERT_MSG( false, "Expected a zone after zone properties edit" );
continue;
}
// aZone won't be filled if the layer set was modified, but it needs to be updated
if( zone->IsFilled() || zone == aZone )
zones_to_refill.push_back( zone );
wxASSERT_MSG( false, "Expected a zone after zone properties edit" );
continue;
}
commit.Stage( pickedList );
// aZone won't be filled if the layer set was modified, but it needs to be updated
if( zone->IsFilled() || zone == aZone )
zones_to_refill.push_back( zone );
}
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() )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment