KiCad: fix crash bug when editing symbol library table.

Do not check the connection graph when editing the symbol library table
from KiCad because the connection graph object is no valid when the
schematic editor is not open.

Fixes kicad/code/kicad#3682
This commit is contained in:
Wayne Stambaugh 2019-12-17 18:42:22 -05:00
parent c31c99abd1
commit 879ec7d8e6
1 changed files with 2 additions and 1 deletions

View File

@ -1204,7 +1204,8 @@ void SCH_SCREENS::UpdateSymbolLinks( bool aForce )
// All of the library symbols have been replaced with copies so the connection graph // All of the library symbols have been replaced with copies so the connection graph
// pointer are stale. // pointer are stale.
g_ConnectionGraph->Recalculate( sheets, true ); if( g_ConnectionGraph )
g_ConnectionGraph->Recalculate( sheets, true );
} }