diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index f124c9bc7d..e55876e5d6 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -98,7 +98,6 @@ SIM_PLOT_FRAME::SIM_PLOT_FRAME( KIWAY* aKiway, wxWindow* aParent ) { m_exporter = NULL; m_simulator = NULL; - m_currentPlot = NULL; m_pyConsole = NULL; m_simThread = NULL; @@ -197,8 +196,8 @@ void SIM_PLOT_FRAME::StopSimulation() void SIM_PLOT_FRAME::NewPlot() { SIM_PLOT_PANEL* plot = new SIM_PLOT_PANEL( this, wxID_ANY ); - m_plotNotebook->AddPage( plot, wxT( "Plot1" ), true ); - m_currentPlot = plot; + m_plotNotebook->AddPage( plot, + wxString::Format( wxT( "Plot%lu" ), m_plotNotebook->GetPageCount() + 1 ), true ); } diff --git a/eeschema/sim/sim_plot_frame.h b/eeschema/sim/sim_plot_frame.h index 5eb2ea260c..d3a12f6706 100644 --- a/eeschema/sim/sim_plot_frame.h +++ b/eeschema/sim/sim_plot_frame.h @@ -69,7 +69,6 @@ class SIM_PLOT_FRAME : public SIM_PLOT_FRAME_BASE virtual void onSimReport( wxThreadEvent& aEvent ); virtual void onSimFinished( wxThreadEvent& aEvent ); - SIM_PLOT_PANEL* m_currentPlot; SCH_EDIT_FRAME* m_schematicFrame; NETLIST_EXPORTER_PSPICE* m_exporter; SPICE_SIMULATOR* m_simulator;