From: Carl Hetherington Date: Sun, 13 Mar 2022 20:04:02 +0000 (+0100) Subject: Fix weird placement of SetSortColumn() call causing strange assertion failure in... X-Git-Tag: v2.16.8~27 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=0eda3196f0e3a4f01bfbd39f24dd924fe0eff8fd Fix weird placement of SetSortColumn() call causing strange assertion failure in wxWidgets. --- 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) add_screen (cinema, screen); } - _targets->SetSortColumn (0); - return id; }