From 13e5912493aa92045e09a09ff21a8cd0e16539c6 Mon Sep 17 00:00:00 2001 From: Darby Johnston Date: Thu, 13 Jun 2024 16:57:27 -0700 Subject: [PATCH] Timeline fix --- lib/tlTimelineUI/VideoClipItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tlTimelineUI/VideoClipItem.cpp b/lib/tlTimelineUI/VideoClipItem.cpp index bbcdb312..599b2da9 100644 --- a/lib/tlTimelineUI/VideoClipItem.cpp +++ b/lib/tlTimelineUI/VideoClipItem.cpp @@ -280,7 +280,7 @@ namespace tl { const otime::RationalTime time = otime::RationalTime( _timeRange.start_time().value() + - (w > 0 ? (x / static_cast(w - 1)) : 0) * + (w > 1 ? (x / static_cast(w - 1)) : 0) * _timeRange.duration().value(), _timeRange.duration().rate()). floor();