From: Carl Hetherington Date: Wed, 18 Dec 2019 22:37:29 +0000 (+0100) Subject: Accept float fps when getting timecodes from the Timecode control X-Git-Tag: v2.14.19 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=1229de2042c785a9e851e5fc53922a75bfbf195d Accept float fps when getting timecodes from the Timecode control otherwise inaccurate values are returned for non-integer rates. Should fix #1694. --- 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 ());