Replace wxASSERT with wxCHECK2.

This commit is contained in:
Jeff Young 2022-11-29 21:12:31 +00:00
parent 31eb91e9e5
commit 193e8715f9
1 changed files with 2 additions and 4 deletions

View File

@ -709,10 +709,8 @@ void SCH_EDIT_FRAME::HardRedraw()
for( std::pair<const wxString, LIB_SYMBOL*>& libSymbol : screen->GetLibSymbols() )
{
wxASSERT( libSymbol.second );
if( libSymbol.second )
libSymbol.second->ClearCaches();
wxCHECK2( libSymbol.second, continue );
libSymbol.second->ClearCaches();
}
RecalculateConnections( LOCAL_CLEANUP );