@@ -104,7 +104,7 @@ NashChoiceDialog::NashChoiceDialog(wxWindow *p_parent, GameDocument *p_doc)
104104 SetSizer (topSizer);
105105 topSizer->Fit (this );
106106 topSizer->SetSizeHints (this );
107- Layout ();
107+ wxTopLevelWindowBase:: Layout ();
108108 CenterOnParent ();
109109}
110110
@@ -140,9 +140,10 @@ void NashChoiceDialog::OnCount(wxCommandEvent &p_event)
140140
141141void NashChoiceDialog::OnMethod (wxCommandEvent &p_event)
142142{
143- const wxString method = m_methodChoice->GetString (p_event.GetSelection ());
144143
145- if (method == s_simpdiv || method == s_enummixed || method == s_gnm || method == s_ipa) {
144+ if (const wxString method = m_methodChoice->GetString (p_event.GetSelection ());
145+ method == s_enumpure || method == s_simpdiv || method == s_enummixed || method == s_liap ||
146+ method == s_gnm || method == s_ipa) {
146147 m_repChoice->SetSelection (1 );
147148 m_repChoice->Enable (false );
148149 }
@@ -233,9 +234,9 @@ std::shared_ptr<AnalysisOutput> NashChoiceDialog::GetCommand() const
233234 }
234235 }
235236 else if (method == s_enumpure) {
236- cmd = std::make_shared<AnalysisProfileList<Rational>>(m_doc, useEfg );
237+ cmd = std::make_shared<AnalysisProfileList<Rational>>(m_doc, false );
237238 cmd->SetCommand (prefix + wxT (" enumpure" ) + options);
238- cmd->SetDescription (count + wxT (" in pure strategies " ) + game);
239+ cmd->SetDescription (count + wxT (" in pure strategies in strategic game" ) );
239240 }
240241 else if (method == s_enummixed) {
241242 cmd = std::make_shared<AnalysisProfileList<Rational>>(m_doc, false );
@@ -268,9 +269,9 @@ std::shared_ptr<AnalysisOutput> NashChoiceDialog::GetCommand() const
268269 cmd->SetDescription (count + wxT (" by solving a linear complementarity program " ) + game);
269270 }
270271 else if (method == s_liap) {
271- cmd = std::make_shared<AnalysisProfileList<double >>(m_doc, useEfg );
272+ cmd = std::make_shared<AnalysisProfileList<double >>(m_doc, false );
272273 cmd->SetCommand (prefix + wxT (" liap -d 10" ) + options);
273- cmd->SetDescription (count + wxT (" by function minimization " ) + game);
274+ cmd->SetDescription (count + wxT (" by function minimization in strategic game" ) );
274275 }
275276 else if (method == s_logit) {
276277 cmd = std::make_shared<AnalysisProfileList<double >>(m_doc, useEfg);
0 commit comments