Fix QA build

This commit is contained in:
Jon Evans 2024-01-23 22:50:40 -05:00
parent a85478df97
commit d50e0811fb
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ BOARD_COMMIT::BOARD_COMMIT( TOOL_MANAGER* aMgr ) :
m_toolMgr( aMgr ),
m_isBoardEditor( false )
{
if( dynamic_cast<PCB_EDIT_FRAME*>( aMgr->GetToolHolder() ) )
EDA_DRAW_FRAME* frame = dynamic_cast<EDA_DRAW_FRAME*>( aMgr->GetToolHolder() );
if( frame && frame->IsType( FRAME_PCB_EDITOR ) )
m_isBoardEditor = true;
}