From 002a0045e5c0ed70966b1a19bfe3f8564af1f226 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 4 Jan 2013 17:54:19 +0100 Subject: [PATCH] fixed calculation of short songs if a song does not start with beat 0 --- VocaluxeLib/Menu/SongMenu/CSong.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VocaluxeLib/Menu/SongMenu/CSong.cs b/VocaluxeLib/Menu/SongMenu/CSong.cs index ea4316e5..98012fdc 100644 --- a/VocaluxeLib/Menu/SongMenu/CSong.cs +++ b/VocaluxeLib/Menu/SongMenu/CSong.cs @@ -1016,7 +1016,7 @@ namespace Vocaluxe.Menu.SongMenu } //Calculate length of singing - int stop = (lines.Line[lines.Line.Length - 1].LastNoteBeat - lines.Line[0].FirstNoteBeat) / 2; + int stop = (lines.Line[lines.Line.Length - 1].LastNoteBeat - lines.Line[0].FirstNoteBeat) / 2 + lines.Line[0].StartBeat; //Check if stop is in series for (int i = 0; i < series.Count; i++)