eeschema: don't save and restore schematic sheet in exporter
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11488
This commit is contained in:
parent
757c33ea13
commit
d18d2eed51
|
@ -99,13 +99,9 @@ public:
|
||||||
m_schematic( aSchematic )
|
m_schematic( aSchematic )
|
||||||
{
|
{
|
||||||
wxASSERT( aSchematic );
|
wxASSERT( aSchematic );
|
||||||
m_savedCurrentSheet = m_schematic->CurrentSheet();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~NETLIST_EXPORTER_BASE()
|
virtual ~NETLIST_EXPORTER_BASE() = default;
|
||||||
{
|
|
||||||
m_schematic->SetCurrentSheet( m_savedCurrentSheet );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write to specified output file.
|
* Write to specified output file.
|
||||||
|
@ -210,9 +206,6 @@ protected:
|
||||||
|
|
||||||
/// The schematic we're generating a netlist for
|
/// The schematic we're generating a netlist for
|
||||||
SCHEMATIC_IFACE* m_schematic;
|
SCHEMATIC_IFACE* m_schematic;
|
||||||
|
|
||||||
/// The schematic's CurrentSheet when we entered. Restore on exiting.
|
|
||||||
SCH_SHEET_PATH m_savedCurrentSheet;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue