Stop adding a new return to a sim command every time we read it.

Also stop moving the legend down 40 pixels every time it's read.
This commit is contained in:
Jeff Young 2023-07-20 22:43:49 +01:00
parent fcc770cad6
commit 094a80ce31
2 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ SIM_PLOT_TAB::SIM_PLOT_TAB( const wxString& aSimCommand, wxWindow* parent ) :
updateAxes();
// a mpInfoLegend displays le name of traces on the left top panel corner:
m_legend = new mpInfoLegend( wxRect( 0, 40, 200, 40 ), wxTRANSPARENT_BRUSH );
m_legend = new mpInfoLegend( wxRect( 0, 0, 200, 40 ), wxTRANSPARENT_BRUSH );
m_legend->SetVisible( false );
m_plotWin->AddLayer( m_legend );

View File

@ -1874,7 +1874,7 @@ bool SIMULATOR_FRAME_UI::loadJsonWorkbook( const wxString& aPath )
else if( cmd == ".probe allp" )
simOptions |= NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS;
else
simCommand += wxString( cmd ) + wxT( "\n" );
simCommand += wxString( cmd ).Trim();
}
SIM_TAB* simTab = NewSimTab( simCommand );