summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-20 09:02:16 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-20 09:02:16 +0100
commit62bfae1511bb8d33ef4cd71b5822bb0b74a5389c (patch)
tree9b70adf6c6f67ebdcf1d11bd3bd2ae1799b9de8e /src
parente881aeab8b5ffdfbc65b6a3ea0bf4cd96f350c8b (diff)
Cleanup: use from_frames rather than from_seconds.
Diffstat (limited to 'src')
-rw-r--r--src/wx/timecode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timecode.h b/src/wx/timecode.h
index bce527ed2..3746b32cd 100644
--- a/src/wx/timecode.h
+++ b/src/wx/timecode.h
@@ -114,7 +114,7 @@ public:
std::string const s = value_or_hint (_seconds);
t += T::from_seconds (dcp::raw_convert<int>(s.empty() ? "0" : s));
std::string const f = value_or_hint (_frames);
- t += T::from_seconds (dcp::raw_convert<double>(f.empty() ? "0" : f) / fps);
+ t += T::from_frames (dcp::raw_convert<int>(f.empty() ? "0" : f), fps);
return t;
}