Index: Slim/Buttons/Playlist.pm =================================================================== RCS file: /home/cvs/cvsroot/slim/server/Slim/Buttons/Playlist.pm,v retrieving revision 1.33 diff -u -p -B -r1.33 Playlist.pm --- Slim/Buttons/Playlist.pm 25 Aug 2004 23:24:42 -0000 1.33 +++ Slim/Buttons/Playlist.pm 27 Aug 2004 04:49:47 -0000 @@ -180,6 +180,9 @@ sub lines { if (showingNowPlaying($client) || (Slim::Player::Playlist::count($client) < 1)) { return $client->currentSongLines(); } else { + if ( browseplaylistindex($client) + 1 > Slim::Player::Playlist::count($client)) { + browseplaylistindex($client,Slim::Player::Playlist::count($client)-1) + } $line1 = sprintf "%s (%d %s %d) ", string('PLAYLIST'), browseplaylistindex($client) + 1, string('OUT_OF'), Slim::Player::Playlist::count($client); $line2 = Slim::Music::Info::standardTitle($client, Slim::Player::Playlist::song($client, browseplaylistindex($client))); $overlay2 = Slim::Display::Display::symbol('notesymbol');