projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1444299
)
Accept float fps when getting timecodes from the Timecode control
v2.14.19
author
Carl Hetherington
<cth@carlh.net>
Wed, 18 Dec 2019 22:37:29 +0000
(23:37 +0100)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/src/wx/timecode.h
b/src/wx/timecode.h
index 31ddd111caec3aa17538122100dad3b42713389a..18508847b3af4e0b2f1ddf225f339c1afa7e7be5 100644
(file)
--- a/
src/wx/timecode.h
+++ b/
src/wx/timecode.h
@@
-81,7
+81,7
@@
public:
checked_set (_fixed, t.timecode (fps));
}
checked_set (_fixed, t.timecode (fps));
}
- T get (
in
t fps) const
+ T get (
floa
t fps) const
{
T t;
std::string const h = wx_to_std (_hours->GetValue ());
{
T t;
std::string const h = wx_to_std (_hours->GetValue ());