From d50e0811fbf89e122d541a3263a6211884deb126 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 23 Jan 2024 22:50:40 -0500 Subject: [PATCH] Fix QA build --- pcbnew/board_commit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index 2db9b32c65..f68781789c 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -62,7 +62,9 @@ BOARD_COMMIT::BOARD_COMMIT( TOOL_MANAGER* aMgr ) : m_toolMgr( aMgr ), m_isBoardEditor( false ) { - if( dynamic_cast( aMgr->GetToolHolder() ) ) + EDA_DRAW_FRAME* frame = dynamic_cast( aMgr->GetToolHolder() ); + + if( frame && frame->IsType( FRAME_PCB_EDITOR ) ) m_isBoardEditor = true; }