Minor cleanup.
This commit is contained in:
parent
543343b7d1
commit
4ed2a0674a
|
@ -294,7 +294,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||||
if( boardItem->Type() == PCB_GROUP_T )
|
if( boardItem->Type() == PCB_GROUP_T )
|
||||||
addedGroup = static_cast<PCB_GROUP*>( boardItem );
|
addedGroup = static_cast<PCB_GROUP*>( boardItem );
|
||||||
|
|
||||||
if( autofillZones && boardItem->Type() != PCB_MARKER_T )
|
if( m_isBoardEditor && autofillZones && boardItem->Type() != PCB_MARKER_T )
|
||||||
dirtyIntersectingZones( boardItem, changeType );
|
dirtyIntersectingZones( boardItem, changeType );
|
||||||
|
|
||||||
if( view && boardItem->Type() != PCB_NETINFO_T )
|
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 ) )
|
if( parentFP && !( parentFP->GetFlags() & STRUCT_DELETED ) )
|
||||||
ent.m_parent = parentFP->m_Uuid;
|
ent.m_parent = parentFP->m_Uuid;
|
||||||
|
|
||||||
if( autofillZones )
|
if( m_isBoardEditor && autofillZones && boardItem->Type() != PCB_MARKER_T )
|
||||||
dirtyIntersectingZones( boardItem, changeType );
|
dirtyIntersectingZones( boardItem, changeType );
|
||||||
|
|
||||||
switch( boardItem->Type() )
|
switch( boardItem->Type() )
|
||||||
|
@ -452,7 +452,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||||
connectivity->Update( boardItem );
|
connectivity->Update( boardItem );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_isBoardEditor && autofillZones )
|
if( m_isBoardEditor && autofillZones && boardItem->Type() != PCB_MARKER_T )
|
||||||
{
|
{
|
||||||
dirtyIntersectingZones( boardItemCopy, changeType ); // before
|
dirtyIntersectingZones( boardItemCopy, changeType ); // before
|
||||||
dirtyIntersectingZones( boardItem, changeType ); // after
|
dirtyIntersectingZones( boardItem, changeType ); // after
|
||||||
|
|
Loading…
Reference in New Issue