projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e881aea
)
Cleanup: use from_frames rather than from_seconds.
author
Carl Hetherington
<cth@carlh.net>
Sat, 20 Mar 2021 08:02:16 +0000
(09:02 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 20 Mar 2021 08:02:16 +0000
(09:02 +0100)
src/wx/timecode.h
patch
|
blob
|
history
diff --git
a/src/wx/timecode.h
b/src/wx/timecode.h
index bce527ed28c026dbae9a67ae002ac85c147d8a37..3746b32cd621a3fa4710b27bad1a76cd7db20899 100644
(file)
--- a/
src/wx/timecode.h
+++ b/
src/wx/timecode.h
@@
-114,7
+114,7
@@
public:
std::string const s = value_or_hint (_seconds);
t += T::from_seconds (dcp::raw_convert<int>(s.empty() ? "0" : s));
std::string const f = value_or_hint (_frames);
- t += T::from_
seconds (dcp::raw_convert<double>(f.empty() ? "0" : f) /
fps);
+ t += T::from_
frames (dcp::raw_convert<int>(f.empty() ? "0" : f),
fps);
return t;
}