diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-10 20:19:26 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-10 20:19:26 +0000 |
| commit | 6835fc7930cc6323e64e07f654f7aaba8fc9e689 (patch) | |
| tree | 20300c1913f319da1e9a463821b51bd4bb1891a2 /src | |
| parent | 3bd26fbcd2951331154d0d1783a4caf34bd23e7f (diff) | |
Fix silly crash.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
