summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-12-18 23:37:29 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-18 23:37:29 +0100
commit1229de2042c785a9e851e5fc53922a75bfbf195d (patch)
tree6d663bfa01d61c94acd3f482b034722ded2300b3
parent1444299fa4582fc65c5237edd6c115921f20f872 (diff)
Accept float fps when getting timecodes from the Timecode controlv2.14.19
otherwise inaccurate values are returned for non-integer rates. Should fix #1694.
-rw-r--r--src/wx/timecode.h2
1 files changed, 1 insertions, 1 deletions
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 ());