From 62bfae1511bb8d33ef4cd71b5822bb0b74a5389c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 20 Mar 2021 09:02:16 +0100 Subject: Cleanup: use from_frames rather than from_seconds. --- src/wx/timecode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wx/timecode.h') 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(s.empty() ? "0" : s)); std::string const f = value_or_hint (_frames); - t += T::from_seconds (dcp::raw_convert(f.empty() ? "0" : f) / fps); + t += T::from_frames (dcp::raw_convert(f.empty() ? "0" : f), fps); return t; } -- cgit v1.2.3