More issue #16846 invalid pointer checks.

This has now pushed the issue down to a broken RTree issue.  Skipping the
asserts in debug builds will still crash but now it's pushed down to the
RTree.
This commit is contained in:
Wayne Stambaugh 2024-02-10 15:41:10 -05:00
parent 5819ad274f
commit e302261067
3 changed files with 4 additions and 1 deletions

View File

@ -532,7 +532,6 @@ void SCH_COMMIT::Revert()
if( item->Type() == SCH_SYMBOL_T )
{
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( item );
wxCHECK2( symbol, continue );
symbol->UpdatePins();
}

View File

@ -1777,6 +1777,8 @@ void SCH_EDIT_FRAME::RecalculateConnections( SCH_COMMIT* aCommit, SCH_CLEANUP_FL
for( auto&[ path, item ] : all_items )
{
wxCHECK2( item, continue );
switch( item->Type() )
{
case SCH_FIELD_T:

View File

@ -32,6 +32,7 @@
SCH_PIN::SCH_PIN( LIB_PIN* aLibPin, SCH_SYMBOL* aParentSymbol ) :
SCH_ITEM( aParentSymbol, SCH_PIN_T )
{
wxASSERT( aParentSymbol );
m_layer = LAYER_PIN;
m_alt = wxEmptyString;
m_number = aLibPin->GetNumber();
@ -48,6 +49,7 @@ SCH_PIN::SCH_PIN( LIB_PIN* aLibPin, SCH_SYMBOL* aParentSymbol ) :
SCH_PIN::SCH_PIN( SCH_SYMBOL* aParentSymbol, const wxString& aNumber, const wxString& aAlt ) :
SCH_ITEM( aParentSymbol, SCH_PIN_T )
{
wxASSERT( aParentSymbol );
m_layer = LAYER_PIN;
m_alt = aAlt;
m_number = aNumber;