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

src/wx/timecode.h

index 31ddd11..1850884 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 ());