net navigator: check for removal from net as well
This commit is contained in:
parent
e1548c0f9a
commit
e83a82594e
|
@ -1739,7 +1739,8 @@ void SCH_EDIT_FRAME::RecalculateConnections( SCH_COMMIT* aCommit, SCH_CLEANUP_FL
|
||||||
|
|
||||||
SCH_CONNECTION* connection = aChangedItem->Connection();
|
SCH_CONNECTION* connection = aChangedItem->Connection();
|
||||||
|
|
||||||
if( connection && ( connection->Name() == highlightedConn ) )
|
if( connection
|
||||||
|
&& ( connection->Name() == highlightedConn || connection->HasDriverChanged() ) )
|
||||||
m_highlightedConnChanged = true;
|
m_highlightedConnChanged = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -109,9 +109,9 @@ void SCH_EDIT_FRAME::SaveCopyInUndoList( SCH_SCREEN* aScreen, SCH_ITEM* aItem,
|
||||||
|
|
||||||
if( aDirtyConnectivity )
|
if( aDirtyConnectivity )
|
||||||
{
|
{
|
||||||
if( !aItem->IsConnectivityDirty()
|
if( !aItem->IsConnectivityDirty() && aItem->Connection()
|
||||||
&& aItem->Connection()
|
&& ( aItem->Connection()->Name() == m_highlightedConn
|
||||||
&& ( aItem->Connection()->Name() == m_highlightedConn ) )
|
|| aItem->Connection()->HasDriverChanged() ) )
|
||||||
{
|
{
|
||||||
m_highlightedConnChanged = true;
|
m_highlightedConnChanged = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue