summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-13 21:04:02 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-17 22:20:04 +0100
commit0eda3196f0e3a4f01bfbd39f24dd924fe0eff8fd (patch)
treee07e9cc3b3dc7ed87fa5a182d4d9675a21bd419b
parent7cddc9c184206bef64052283c0e4eb52cdc4eb03 (diff)
Fix weird placement of SetSortColumn() call causing strange assertion failure in wxWidgets.
-rw-r--r--src/wx/screens_panel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc
index 925784caf..02ef2f62c 100644
--- a/src/wx/screens_panel.cc
+++ b/src/wx/screens_panel.cc
@@ -57,6 +57,8 @@ ScreensPanel::ScreensPanel (wxWindow* parent)
auto targets = new wxBoxSizer (wxHORIZONTAL);
_targets = new TreeListCtrl (this);
_targets->AppendColumn (wxT("foo"));
+ _targets->SetSortColumn (0);
+
targets->Add (_targets, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_GAP);
add_cinemas ();
@@ -140,8 +142,6 @@ ScreensPanel::add_cinema (shared_ptr<Cinema> cinema)
add_screen (cinema, screen);
}
- _targets->SetSortColumn (0);
-
return id;
}