From e8a500dc997bebc35f7f8d96113f081470617ff3 Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 24 Jun 2021 23:15:50 +0200 Subject: [PATCH] BugFix negative play speed Selection --- UserInterfaceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 503318e..d507d3a 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -2359,7 +2359,7 @@ void SourceController::RenderSelection(size_t i) // collect durations of all media sources MediaSource *ms = dynamic_cast(*source); if (ms != nullptr) - durations.push_back(static_cast(static_cast(ms->mediaplayer()->timeline()->sectionsDuration()) / ms->mediaplayer()->playSpeed())); + durations.push_back(static_cast(static_cast(ms->mediaplayer()->timeline()->sectionsDuration()) / fabs(ms->mediaplayer()->playSpeed()))); // compute the displayed width of frames of this source, and keep the max to align afterwards float w = 1.5f * timeline_height_ * (*source)->frame()->aspectRatio(); if ( w > maxframewidth)