Fix silly crash.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Jan 2019 20:19:26 +0000 (20:19 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Jan 2019 20:19:26 +0000 (20:19 +0000)
src/wx/film_viewer.cc

index e7d5162..8b58d42 100644 (file)
@@ -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;
        }