From 6835fc7930cc6323e64e07f654f7aaba8fc9e689 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 10 Jan 2019 20:19:26 +0000 Subject: Fix silly crash. --- src/wx/film_viewer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index e7d51624a..8b58d42f0 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -330,7 +330,7 @@ FilmViewer::paint_panel () { wxPaintDC dc (_panel); - if (!_out_size.width || !_out_size.height || _out_size != _frame->size()) { + if (!_out_size.width || !_out_size.height || (_frame && _out_size != _frame->size())) { dc.Clear (); return; } -- cgit v1.2.3