From b5335ed37e52c216a6773789c0edba5f335c8df2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 18 Dec 2019 23:38:52 +0100 Subject: [PATCH] Accept float fps when getting timecodes from the Timecode control otherwise inaccurate values are returned for non-integer rates. Should fix #1694. Forward-ported from 1229de2042c785a9e851e5fc53922a75bfbf195d in master. --- src/wx/timecode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/timecode.h b/src/wx/timecode.h index 31ddd111c..18508847b 100644 --- a/src/wx/timecode.h +++ b/src/wx/timecode.h @@ -81,7 +81,7 @@ public: checked_set (_fixed, t.timecode (fps)); } - T get (int fps) const + T get (float fps) const { T t; std::string const h = wx_to_std (_hours->GetValue ()); -- 2.30.2