1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Start counting at 1

This commit is contained in:
Reinhard Pointner 2016-04-06 07:16:33 +00:00
parent 41e445543a
commit 6b7768417b

View File

@ -203,7 +203,7 @@ public class ListPanel extends JComponent {
}
public void createItemSequence(List<?> objects) {
List<ListItem> items = IntStream.range(0, objects.size()).mapToObj(i -> createItem(objects.get(i), i, 0, objects.size(), objects)).collect(toList());
List<ListItem> items = IntStream.range(1, objects.size()).mapToObj(i -> createItem(objects.get(i), i, 0, objects.size(), objects)).collect(toList());
list.getListComponent().clearSelection();
list.getModel().clear();