comparison src/audacious/ui_skinned_playlist.c @ 4424:60f53670478a

fix selection of last item, if total amount of items in playlist is smaller than playlist's capacity
author Tomasz Mon <desowin@gmail.com>
date Sun, 06 Apr 2008 10:57:19 +0200
parents 3bf0124ffd2b
children 246244ead30e
comparison
equal deleted inserted replaced
4423:5717879de1af 4424:60f53670478a
525 0 + width, yc + 0.5, 0 + width, yc + rounding_offset); 525 0 + width, yc + 0.5, 0 + width, yc + rounding_offset);
526 526
527 in_selection = TRUE; 527 in_selection = TRUE;
528 } 528 }
529 529
530 if ((!entry->selected || i == pl->first + pl->num_visible - 1) 530 if ((!entry->selected ||
531 (i == pl->first + pl->num_visible - 1) || !g_list_next(list))
531 && in_selection) { 532 && in_selection) {
532 533
533 if (!entry->selected) 534 if (!entry->selected)
534 yc = (((i - 1) - pl->first) * pl->fheight); 535 yc = (((i - 1) - pl->first) * pl->fheight);
535 else /* last visible item */ 536 else /* last visible item */