diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-13 21:04:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-02 22:23:49 +0200 |
| commit | 0e81ba3480c9beab90463baad64cb91df8595668 (patch) | |
| tree | 2a5f73a2c31c9b28a59861e8c5ab6093cd72cf77 | |
| parent | fa6c1e40a292c742d4c8f4594c0ad97cf8410ebb (diff) | |
Fix weird placement of SetSortColumn() call causing strange assertion failure in wxWidgets.
| -rw-r--r-- | src/wx/screens_panel.cc | 4 |
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; } |
