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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user