Remove empty lines from Songs (causes problems otherwise!)

Compatibility reading mode for songs with 0-based lengths
Give Lines as an enumerable instead of creating an array
This commit is contained in:
Flamefire committed 2013-10-11 19:19:42 +02:00
1 parent a9b3e1d3f8
commit d498e0b935
6 files changed
+125 -25

No files matched your search

+5
View File
@@ -270,5 +270,10 @@ namespace VocaluxeLib.Songs
line.SetMedley(startBeat, endBeat);
}
#endregion Methods
public int RemoveEmptyLines()
{
return _Lines.RemoveAll(line => line.NoteCount == 0);
}
}
}