fixed line Nr count in song loading
This commit is contained in:
1 parent
82208cf790
commit
7f845d4179
1 file changed
+2
-2
@@ -389,9 +389,9 @@ namespace Vocaluxe.Lib.Song
|
||||
TempC = (char)sr.Read();
|
||||
} while ((TempC.CompareTo(':') != 0) && (TempC.CompareTo('F') != 0) && (TempC.CompareTo('*') != 0) && (TempC.CompareTo('P') != 0));
|
||||
|
||||
FileLineNo++;
|
||||
while (!sr.EndOfStream && (TempC.CompareTo('E') != 0))
|
||||
{
|
||||
FileLineNo++;
|
||||
if (TempC.CompareTo('P') == 0)
|
||||
{
|
||||
char chr = (char)sr.Read();
|
||||
@@ -466,7 +466,7 @@ namespace Vocaluxe.Lib.Song
|
||||
{
|
||||
c = sr.Read();
|
||||
TempC = (char)c;
|
||||
} while ((TempC.CompareTo('E') != 0) && !sr.EndOfStream && (c == 19 || c == 16 || c == 13));
|
||||
} while ((TempC.CompareTo('E') != 0) && !sr.EndOfStream && (c == 19 || c == 16 || c == 13 || c==10));
|
||||
}
|
||||
foreach(CLines lines in this.Notes.Lines)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user