There's no view when running tests.

This commit is contained in:
Jeff Young
2025-06-13 18:09:22 +01:00
parent e2cf944915
commit 9f7fa4df66
+2 -1
View File
@@ -514,7 +514,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() )