Fix connectivity assertion in schematic editor.
https://gitlab.com/kicad/code/kicad/-/issues/14835
This commit is contained in:
parent
cfb45be71e
commit
f950354f99
|
@ -113,7 +113,8 @@ void SCH_EDIT_FRAME::SaveCopyInUndoList( SCH_SCREEN* aScreen, SCH_ITEM* aItem,
|
|||
|
||||
if( aDirtyConnectivity )
|
||||
{
|
||||
if( aItem->Connection() && ( aItem->Connection()->Name() == m_highlightedConn ) )
|
||||
if( !aItem->IsConnectivityDirty() && aItem->Connection()
|
||||
&& ( aItem->Connection()->Name() == m_highlightedConn ) )
|
||||
m_highlightedConnChanged = true;
|
||||
|
||||
aItem->SetConnectivityDirty();
|
||||
|
@ -215,7 +216,8 @@ void SCH_EDIT_FRAME::SaveCopyInUndoList( const PICKED_ITEMS_LIST& aItemsList,
|
|||
|
||||
if( aDirtyConnectivity )
|
||||
{
|
||||
if( sch_item->Connection() && ( sch_item->Connection()->Name() == m_highlightedConn ) )
|
||||
if( !sch_item->IsConnectivityDirty() && sch_item->Connection()
|
||||
&& ( sch_item->Connection()->Name() == m_highlightedConn ) )
|
||||
m_highlightedConnChanged = true;
|
||||
|
||||
sch_item->SetConnectivityDirty();
|
||||
|
|
Loading…
Reference in New Issue