Accept float fps when getting timecodes from the Timecode control
authorCarl Hetherington <cth@carlh.net>
Wed, 18 Dec 2019 22:38:52 +0000 (23:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 18 Dec 2019 22:38:52 +0000 (23:38 +0100)
otherwise inaccurate values are returned for non-integer rates.
Should fix #1694.

Forward-ported from 1229de2042c785a9e851e5fc53922a75bfbf195d in master.

src/wx/timecode.h

index 31ddd111caec3aa17538122100dad3b42713389a..18508847b3af4e0b2f1ddf225f339c1afa7e7be5 100644 (file)
@@ -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 ());