Drop selection when creating new text item.
Fixes https://gitlab.com/kicad/code/kicad/issues/6310
This commit is contained in:
parent
c6ba4cdd19
commit
f33e44e630
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue