From 760f2801c37ffd772e41dd3991be3da51fdba242 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 3 May 2019 01:32:46 +0000 Subject: Fix/workaround crash: ../src/common/dpycmn.cpp(119): assert "n film, weak_ptr screen; + int const sn = wxDisplay::GetFromWindow(_splitter); + if (sn >= 0) { + screen = wxDisplay(sn).GetClientArea(); + } wxPanel* top = new wxPanel (_splitter); _menu = new ContentMenu (_splitter); @@ -150,7 +153,9 @@ ContentPanel::ContentPanel (wxNotebook* n, shared_ptr film, weak_ptrSplitHorizontally (top, _notebook, screen.height > 800 ? -600 : -150); + if (screen) { + _splitter->SplitHorizontally (top, _notebook, screen->height > 800 ? -600 : -150); + } _timing_panel = new TimingPanel (this, _film_viewer); _notebook->AddPage (_timing_panel, _("Timing"), false); -- cgit v1.2.3