Drop selection when creating new text item.

Fixes https://gitlab.com/kicad/code/kicad/issues/6310
This commit is contained in:
Jeff Young 2020-11-08 00:14:22 +00:00
parent c6ba4cdd19
commit f33e44e630
1 changed files with 2 additions and 0 deletions

View File

@ -493,6 +493,8 @@ int DRAWING_TOOL::PlaceText( const TOOL_EVENT& aEvent )
if( !text ) if( !text )
{ {
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
m_controls->ForceCursorPosition( true, m_controls->GetCursorPosition() ); m_controls->ForceCursorPosition( true, m_controls->GetCursorPosition() );
PCB_LAYER_ID layer = m_frame->GetActiveLayer(); PCB_LAYER_ID layer = m_frame->GetActiveLayer();