Clear edit flags on footprint children in footprint editor.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15199
This commit is contained in:
parent
24e9cf4fd8
commit
c3222b0652
|
@ -555,7 +555,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||||
[&]( BOARD_ITEM* aChild )
|
[&]( BOARD_ITEM* aChild )
|
||||||
{
|
{
|
||||||
view->Update( aChild );
|
view->Update( aChild );
|
||||||
});
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,6 +574,15 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||||
}
|
}
|
||||||
|
|
||||||
boardItem->ClearEditFlags();
|
boardItem->ClearEditFlags();
|
||||||
|
|
||||||
|
if( m_isFootprintEditor && boardItem->Type() == PCB_FOOTPRINT_T )
|
||||||
|
{
|
||||||
|
static_cast<FOOTPRINT*>( boardItem )->RunOnChildren(
|
||||||
|
[&]( BOARD_ITEM* aChild )
|
||||||
|
{
|
||||||
|
aChild->ClearEditFlags();
|
||||||
|
} );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( bulkAddedItems.size() > 0 )
|
if( bulkAddedItems.size() > 0 )
|
||||||
|
|
Loading…
Reference in New Issue