Browse Source

There's no view when running tests.

(cherry picked from commit 9f7fa4df66)
9.0
Jeff Young 4 months ago
parent
commit
1277cdd570
  1. 3
      pcbnew/board_commit.cpp

3
pcbnew/board_commit.cpp

@ -524,7 +524,8 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
if( !staleRuleAreas.empty() && ( settings->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS
|| settings->m_Display.m_PadClearance ) )
{
view->UpdateCollidingItems( staleRuleAreas, { PCB_TRACE_T, PCB_ARC_T, PCB_VIA_T, PCB_PAD_T } );
if( view )
view->UpdateCollidingItems( staleRuleAreas, { PCB_TRACE_T, PCB_ARC_T, PCB_VIA_T, PCB_PAD_T } );
}
if( !staleTeardropPadsAndVias.empty() || !staleTeardropTracks.empty() )

Loading…
Cancel
Save