Don't push view control settings to the previous active tool.

See further comments in bug report.

Fixes https://gitlab.com/kicad/code/kicad/issues/9147
This commit is contained in:
Jeff Young
2021-09-13 13:28:05 +01:00
parent efc9279a19
commit fdfecf5932
20 changed files with 285 additions and 279 deletions
+3 -1
View File
@@ -533,14 +533,16 @@ int DRAWING_TOOL::InteractivePlaceWithPreview( const TOOL_EVENT& aEvent,
BOARD_COMMIT commit( m_frame );
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
m_controls->ShowCursor( true );
// do not capture or auto-pan until we start placing the table
SCOPED_DRAW_MODE scopedDrawMode( m_mode, MODE::TEXT );
std::string tool = aEvent.GetCommandStr().get();
m_frame->PushTool( tool );
Activate();
// Must be done after Activate() so that it gets set into the correct context
m_controls->ShowCursor( true );
// Prime the pump
if( aEvent.HasPosition() )