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:
parent
ec82a1b4e2
commit
a282762686
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue