diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-20 09:02:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-20 09:02:16 +0100 |
| commit | 62bfae1511bb8d33ef4cd71b5822bb0b74a5389c (patch) | |
| tree | 9b70adf6c6f67ebdcf1d11bd3bd2ae1799b9de8e /src | |
| parent | e881aeab8b5ffdfbc65b6a3ea0bf4cd96f350c8b (diff) | |
Cleanup: use from_frames rather than from_seconds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timecode.h | 2 |
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; } |
