Remove BOARD_COMMIT( TOOL_MANAGER ).

It initializes both m_isFootprintEditor and m_isBoardEditor to false,
causing all sorts of trouble.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15072
This commit is contained in:
Jeff Young
2023-07-01 11:52:46 +01:00
parent 011a8f29a3
commit 9ff33e5ec6
7 changed files with 26 additions and 16 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ POSITIONING_TOOLS_MENU::POSITIONING_TOOLS_MENU( TOOL_INTERACTIVE* aTool ) :
SetTitle( _( "Positioning Tools" ) );
auto notMovingCondition =
[ this ]( const SELECTION& aSelection )
[]( const SELECTION& aSelection )
{
return aSelection.Empty() || !aSelection.Front()->IsMoving();
};
@@ -169,7 +169,7 @@ bool EDIT_TOOL::Init()
};
auto notMovingCondition =
[ this ]( const SELECTION& aSelection )
[]( const SELECTION& aSelection )
{
return aSelection.Empty() || !aSelection.Front()->IsMoving();
};