mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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:
parent
0586f02f00
commit
776881fb96
@ -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 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user