Fix typo in new SCH_COMMIT architecture for shape drawing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14976
This commit is contained in:
Jeff Young 2023-06-16 15:50:15 +01:00
parent 75e78f9088
commit 8259091ca1
1 changed files with 1 additions and 1 deletions

View File

@ -1696,7 +1696,7 @@ int SCH_DRAWING_TOOLS::DrawShape( const TOOL_EVENT& aEvent )
}
SCH_COMMIT commit( m_toolMgr );
commit.Added( item, m_frame->GetScreen() );
commit.Add( item, m_frame->GetScreen() );
commit.Push( wxString::Format( _( "Draw %s" ), item->GetClass() ) );
m_selectionTool->AddItemToSel( item );