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