Fix empty last ending

This commit is contained in:
Matthias Neeracher 2007-12-09 22:54:26 +00:00
parent 92cc5cd957
commit 909201cf5d

View File

@ -1127,7 +1127,9 @@ size_t VLSong::EmptyEnding() const
{ {
size_t full = fMeasures.size(); size_t full = fMeasures.size();
while (full-- && fMeasures[full].IsEmpty()) while (full-- && fMeasures[full].IsEmpty()
&& !DoesEndRepeat(full+1, 0) && !DoesEndEnding(full+1, 0, 0)
)
; ;
return fMeasures.size()-(full+1); return fMeasures.size()-(full+1);