summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc2
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;
}