From 7ccfe775fdfdd76adbc7aae6f7d2c162b4abbfa2 Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Fri, 16 Oct 2020 23:49:32 +0200 Subject: [PATCH] Render element - Fixed timeline repeat wrap-around on 0-length timelines --- src/Artemis.Core/Models/Profile/RenderProfileElement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Artemis.Core/Models/Profile/RenderProfileElement.cs b/src/Artemis.Core/Models/Profile/RenderProfileElement.cs index 55d948c89..a30f31c17 100644 --- a/src/Artemis.Core/Models/Profile/RenderProfileElement.cs +++ b/src/Artemis.Core/Models/Profile/RenderProfileElement.cs @@ -238,7 +238,7 @@ namespace Artemis.Core { // If we are at the end of the main timeline, wrap around back to the beginning if (DisplayContinuously && TimelinePosition >= mainSegmentEnd) - TimelinePosition = StartSegmentLength + (mainSegmentEnd - TimelinePosition); + TimelinePosition = StartSegmentLength; } else {