Fix nullptr crash in undo.

This commit is contained in:
Jeff Young 2023-05-07 21:52:31 +01:00
parent 02b380da96
commit 031c46c887
1 changed files with 3 additions and 0 deletions

View File

@ -1318,6 +1318,9 @@ void SCH_EDIT_FRAME::RefreshOperatingPointDisplay()
{
SCHEMATIC_SETTINGS& settings = m_schematic->Settings();
SIM_LIB_MGR simLibMgr( &Prj() );
NULL_REPORTER devnull;
simLibMgr.SetReporter( &devnull );
// Patch for bug early in V7.99 dev
if( settings.m_OPO_VRange.EndsWith( 'A' ) )