From 4ed2a0674a9af8921cf342ecd628e2c71bb85dfe Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 18 Mar 2024 22:01:34 +0000 Subject: [PATCH] Minor cleanup. --- pcbnew/board_commit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index 2d720039ef..c7769bbe54 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -294,7 +294,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags ) if( boardItem->Type() == PCB_GROUP_T ) addedGroup = static_cast( boardItem ); - if( autofillZones && boardItem->Type() != PCB_MARKER_T ) + if( m_isBoardEditor && autofillZones && boardItem->Type() != PCB_MARKER_T ) dirtyIntersectingZones( boardItem, changeType ); if( view && boardItem->Type() != PCB_NETINFO_T ) @@ -324,7 +324,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags ) if( parentFP && !( parentFP->GetFlags() & STRUCT_DELETED ) ) ent.m_parent = parentFP->m_Uuid; - if( autofillZones ) + if( m_isBoardEditor && autofillZones && boardItem->Type() != PCB_MARKER_T ) dirtyIntersectingZones( boardItem, changeType ); switch( boardItem->Type() ) @@ -452,7 +452,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags ) connectivity->Update( boardItem ); } - if( m_isBoardEditor && autofillZones ) + if( m_isBoardEditor && autofillZones && boardItem->Type() != PCB_MARKER_T ) { dirtyIntersectingZones( boardItemCopy, changeType ); // before dirtyIntersectingZones( boardItem, changeType ); // after