From 57ff0d9b06c396f8aae4388d4d61af564f2c04f6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Feb 2024 22:42:35 +0100 Subject: Fix exception when calling resume() without first calling suspend(). --- src/wx/controls.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3