summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-19 20:22:13 +0100
committerCarl Hetherington <cth@carlh.net>2025-09-03 10:07:15 +0200
commit8572ec6f7b46e7a015fd9542e23aa8de2a6a0af2 (patch)
tree0c8f56f99d21f750a80d394972bb42de5a833f71
parent43f2828711adfdd91554a45c163766f84788c73c (diff)
Use a default constructor to avoid a get().
-rw-r--r--src/wx/controls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc
index 4778fdd0f..e4143078a 100644
--- a/src/wx/controls.cc
+++ b/src/wx/controls.cc
@@ -265,7 +265,7 @@ Controls::update_position_slider ()
auto const len = _film->length ();
- if (len.get ()) {
+ if (len != DCPTime()) {
int const new_slider_position = 4096 * _viewer.position().proportion_of(len);
if (new_slider_position != _slider->GetValue()) {
_slider->SetValue (new_slider_position);