Fix problem of spaces between P and number in duet-files.

This commit is contained in:
Florian Kuepper committed 2012-07-03 11:16:43 +02:00
1 parent b82b30aea4
commit daf1848e45
1 file changed
+3 -2
+3 -2
View File
@@ -420,9 +420,10 @@ namespace Vocaluxe.Lib.Song
FileLineNo++; FileLineNo++;
if (TempC.CompareTo('P') == 0) if (TempC.CompareTo('P') == 0)
{ {
char chr = (char)sr.Read(); char chr;
int.TryParse(chr.ToString(), out Param1); while ((chr = (char)sr.Read()) == ' '){ }
int.TryParse(chr.ToString(), out Param1);
if (Param1 == 1) if (Param1 == 1)
Player = 0; Player = 0;
else if (Param1 == 2) else if (Param1 == 2)