Fix pcb drc in cli due to awkward !m_isBoardEditor logic with more awkward logic

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16744
This commit is contained in:
Marek Roszko 2024-01-25 22:09:09 -05:00
parent ec82a1b4e2
commit a282762686
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
if( !( changeFlags & CHT_DONE ) )
{
if( !m_isBoardEditor )
if( !m_isBoardEditor && frame ) // frame check incase we are headless drc (cli, python)
{
FOOTPRINT* parentFP = board->GetFirstFootprint();
wxCHECK2_MSG( parentFP, continue, "Commit thinks this is footprint editor, but "