diff --git a/src/main/java/rv/ui/DrawingListPanel.java b/src/main/java/rv/ui/DrawingListPanel.java index 226c91b..860c88b 100644 --- a/src/main/java/rv/ui/DrawingListPanel.java +++ b/src/main/java/rv/ui/DrawingListPanel.java @@ -123,7 +123,7 @@ public void mouseClicked(MouseEvent event) { // TODO: try/catch really needed? try { - JList list = (JList) event.getSource(); + JList list = (JList) event.getSource(); int index = list.locationToIndex(event.getPoint()); CheckListItem item = (CheckListItem) list.getModel().getElementAt(index); item.setSelected(!item.isSelected());