Don't delete items out from under undo lists.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15253
This commit is contained in:
parent
0f44876205
commit
e2aa3aae8a
|
@ -315,7 +315,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||||
{
|
{
|
||||||
if( parentFP )
|
if( parentFP )
|
||||||
{
|
{
|
||||||
parentFP->Delete( boardItem );
|
parentFP->Remove( boardItem );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue