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:
parent
5819ad274f
commit
e302261067
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue