Browse Source

Do not hang onto previous elements

When using multi-label input or repeat commands, the previous element
should be deselected so that we can properly transform the current
element

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21765
master
Seth Hillbrand 3 weeks ago
parent
commit
5ed46b823b
  1. 1
      eeschema/tools/sch_drawing_tools.cpp

1
eeschema/tools/sch_drawing_tools.cpp

@ -1996,6 +1996,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
item->AutoplaceFields( nullptr, AUTOPLACE_AUTO );
updatePreview();
m_selectionTool->ClearSelection( true );
m_selectionTool->AddItemToSel( item );
m_toolMgr->PostAction( ACTIONS::refreshPreview );

Loading…
Cancel
Save