diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-16 13:17:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-16 13:17:36 +0100 |
| commit | 7616de0d853193d654b4a0d2781a36d6fe043953 (patch) | |
| tree | c356d685096f9dc23df10d401585c56bd98a56ec /src | |
| parent | c7c71e509b3c712742224b9408358fea7c59374d (diff) | |
Fix GTK warning on startup.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index c42ffaeeb..6c8f38cfc 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -232,8 +232,8 @@ FilmViewer::FilmViewer (Film* f, wxWindow* p) _thumb_panel = new ThumbPanel (this, f); _sizer->Add (_thumb_panel, 1, wxEXPAND); - int const max = f ? f->num_thumbs() - 1 : 0; - _slider = new wxSlider (this, wxID_ANY, 0, 0, max); + int const m = max (1, f ? f->num_thumbs() - 1 : 0); + _slider = new wxSlider (this, wxID_ANY, 0, 0, m); _sizer->Add (_slider, 0, wxEXPAND | wxLEFT | wxRIGHT); set_thumbnail (0); |
