fixed calculation of short songs if a song does not start with beat 0

This commit is contained in:
Alexander Eckart committed 2013-01-04 17:54:19 +01:00
1 parent e4c8222da7
commit 002a0045e5
1 file changed
+1 -1
+1 -1
View File
@@ -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++)