From a2827626868fab53bbb90793f7ced56990443ec7 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Thu, 25 Jan 2024 22:09:09 -0500 Subject: [PATCH] Fix pcb drc in cli due to awkward !m_isBoardEditor logic with more awkward logic Fixes https://gitlab.com/kicad/code/kicad/-/issues/16744 --- pcbnew/board_commit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index 816e63c356..c7c98939ff 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -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 "