changeset 4421:ae628568ea94

make selection working for last item in playlist
author Tomasz Mon <desowin@gmail.com>
date Mon, 31 Mar 2008 20:47:07 +0200
parents fa676e489b64
children 3bf0124ffd2b
files src/audacious/ui_skinned_playlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_playlist.c	Mon Mar 31 17:31:45 2008 +0300
+++ b/src/audacious/ui_skinned_playlist.c	Mon Mar 31 20:47:07 2008 +0200
@@ -508,7 +508,7 @@
     list = g_list_nth(list, pl->first);
 
     for (i = pl->first;
-         list && i < pl->first + pl->num_visible;
+         list && i <= pl->first + pl->num_visible;
          list = g_list_next(list), i++) {
         entry = list->data;