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
-8
View File
@@ -42,14 +42,6 @@
using namespace std::placeholders;
BOARD_COMMIT::BOARD_COMMIT( TOOL_MANAGER* aToolMgr ) :
m_toolMgr( aToolMgr ),
m_isFootprintEditor( false ),
m_isBoardEditor( false )
{
}
BOARD_COMMIT::BOARD_COMMIT( PCB_TOOL_BASE* aTool )
{
m_toolMgr = aTool->GetManager();