Handle RepeatLastItem for TwoClickPlace items.

(Note that we've always excluded sheet pins from RepeatLastItem.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15108
This commit is contained in:
Jeff Young 2023-07-09 13:53:23 +01:00
parent bdaad32dc8
commit 5aed30ac79
1 changed files with 1 additions and 0 deletions

View File

@ -1405,6 +1405,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
} }
else else
{ {
m_frame->SaveCopyForRepeatItem( item );
m_frame->AddToScreen( item, m_frame->GetScreen() ); m_frame->AddToScreen( item, m_frame->GetScreen() );
commit.Added( item, m_frame->GetScreen() ); commit.Added( item, m_frame->GetScreen() );
} }