There's no view when running tests.

(cherry picked from commit 9f7fa4df662905ea52bc0b5915e477b0333fb1c3)
This commit is contained in:
Jeff Young 2025-06-13 18:09:22 +01:00
parent 8202388aa8
commit 1277cdd570

View File

@ -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() )