When we change the schematic, update the holder

We need the holder to be accessible at all times to use tooling
This commit is contained in:
Seth Hillbrand 2025-08-19 15:49:39 -07:00
parent 0586f02f00
commit 776881fb96

View File

@ -2481,6 +2481,7 @@ void SCH_EDIT_FRAME::SetSchematic( SCHEMATIC* aSchematic )
delete m_schematic; delete m_schematic;
m_schematic = aSchematic; m_schematic = aSchematic;
m_schematic->SetSchematicHolder( this );
KIGFX::SCH_VIEW* view = GetCanvas()->GetView(); KIGFX::SCH_VIEW* view = GetCanvas()->GetView();
static_cast<KIGFX::SCH_PAINTER*>( view->GetPainter() )->SetSchematic( m_schematic ); static_cast<KIGFX::SCH_PAINTER*>( view->GetPainter() )->SetSchematic( m_schematic );