Explicitly convert std::string to wxString

In wxWidgets STL builds the compiler has multiple, ambigous choices
for converting - both arguments to std::string first, or just the
first to wxString.

Fixes #13432.
This commit is contained in:
Stefan Brüns 2023-01-07 23:13:15 +01:00 committed by Ian McInerney
parent 06a2e950fd
commit 1df81b10e6
1 changed files with 1 additions and 1 deletions

View File

@ -1710,7 +1710,7 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event )
m_circuitModel->SetSimOptions( getCurrentOptions() ); m_circuitModel->SetSimOptions( getCurrentOptions() );
m_circuitModel->GetNetlist( &formatter, reporter ); m_circuitModel->GetNetlist( &formatter, reporter );
NETLIST_VIEW_DIALOG dlg( this, errors.IsEmpty() ? formatter.GetString() : errors ); NETLIST_VIEW_DIALOG dlg( this, errors.IsEmpty() ? wxString( formatter.GetString() ) : errors );
dlg.ShowModal(); dlg.ShowModal();
} }