Fix off-by-two sign error in determining how many songs are not visible in the list.

Also, never show "1 more...", just show the song itself instead.

One of those bugs that's irked me for awhile that I think I'm the only one on the planet who even noticed...
This commit is contained in:
Jared Roberts
2002-10-11 09:28:00 +00:00
parent 7a86e684a1
commit 02dc122958
+3 -2
View File
@@ -50,9 +50,10 @@ void MusicList::AddSongsToGroup(const CArray<Song*,Song*> &Songs)
if( iIndex >= Songs.GetSize() )
continue;
if( c == TITLES_COLUMNS-1 && r == TITLES_ROWS-1 )
int iSongsLen = Songs.GetSize();
if( (c == TITLES_COLUMNS-1) && (r == TITLES_ROWS-1) && (iSongsLen != TITLES_COLUMNS*TITLES_ROWS) )
{
sText += ssprintf( "%d more.....", Songs.GetSize() - TITLES_COLUMNS * TITLES_ROWS - 1 );
sText += ssprintf( "%d more.....", iSongsLen - TITLES_COLUMNS * TITLES_ROWS + 1 );
continue;
}