Skip to content

Commit

Permalink
fix map not display in unique val map w join count (#2387)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed May 9, 2022
1 parent f0b09b8 commit 9254121
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions GeoDa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5122,8 +5122,9 @@ void GdaFrame::OnOpenUniqueValues(wxCommandEvent& event)
{
wxLogMessage("In GdaFrame::OnOpenUniqueValues()");
UniqueValuesSettingDlg dlg(project_p);
if (dlg.ShowModal() != wxID_OK) return;
if (dlg.ShowModal() != wxID_OK) return;

bool isSummaryDlgExisted = false;
wxString joincountSummary = dlg.GetSummary();
if (!joincountSummary.IsEmpty()) {
FramesManager* fm = project_p->GetFramesManager();
Expand All @@ -5135,13 +5136,15 @@ void GdaFrame::OnOpenUniqueValues(wxCommandEvent& event)
w->m_textbox->SetSelection(0, 0);
w->Show(true);
w->Raise();
return;
isSummaryDlgExisted = true;
break;
}
}

SummaryDialog* summaryDlg = new SummaryDialog(this, project_p, joincountSummary, wxID_ANY, _("Join Count Ratio Summary"));
summaryDlg->Show(true);
summaryDlg->m_textbox->SetSelection(0, 0);
if (!isSummaryDlgExisted) {
SummaryDialog* summaryDlg = new SummaryDialog(this, project_p, joincountSummary, wxID_ANY, _("Join Count Ratio Summary"));
summaryDlg->Show(true);
summaryDlg->m_textbox->SetSelection(0, 0);
}
}

MapFrame* nf = new MapFrame(GdaFrame::gda_frame, project_p,
Expand Down

0 comments on commit 9254121

Please sign in to comment.