diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-29 16:12:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-29 16:12:24 +0100 |
| commit | 19b5d2f60bac69a5751fe40ac14de64dea0d391c (patch) | |
| tree | 8273abc9266dee8c89319454b7b46907d5f92079 /src | |
| parent | b8724f408298ff3e804fb821fa15d3bcded0e3db (diff) | |
Fix strange rounding of still image durations (#204).
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timing_panel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index f11a4e5e6..ba645cf32 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -106,7 +106,7 @@ TimingPanel::length_changed () shared_ptr<StillImageContent> ic = dynamic_pointer_cast<StillImageContent> (c); if (ic) { - ic->set_video_length (_length->get (_editor->film()->video_frame_rate()) * ic->video_frame_rate() / TIME_HZ); + ic->set_video_length (rint (_length->get (_editor->film()->video_frame_rate()) * ic->video_frame_rate() / TIME_HZ)); } } |
