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:
parent
fcc770cad6
commit
094a80ce31
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue