Fix exception when calling resume() without first calling suspend().
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2024 21:42:35 +0000 (22:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2024 21:42:35 +0000 (22:42 +0100)
src/wx/controls.cc

index 097daf9443a093fd71d966231ffad93b82aa3211..b6270f91ab424e69ac5e69f72aea2f8cde5f8e48 100644 (file)
@@ -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;