diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-14 22:42:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-14 22:42:35 +0100 |
| commit | 57ff0d9b06c396f8aae4388d4d61af564f2c04f6 (patch) | |
| tree | 88ab0c7079be3928727440ac47155063894c3b65 /src/wx/controls.cc | |
| parent | 3a71f7ffe55658f6662fcdcd5c413bfad110a30e (diff) | |
Fix exception when calling resume() without first calling suspend().
Diffstat (limited to 'src/wx/controls.cc')
| -rw-r--r-- | src/wx/controls.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 097daf944..b6270f91a 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -243,6 +243,10 @@ Controls::slider_moved (bool page) void Controls::slider_released () { + if (!_film) { + return; + } + /* Restart after a drag */ _viewer.resume(); _slider_being_moved = false; |
