Merge pull request #1917 from BasisOlivers/tagged-results-bug-fix

Fixed tagged results bug
This commit is contained in:
Richard Cordovano 2016-02-04 09:13:11 -05:00
commit 50a0197f67

View File

@ -96,10 +96,12 @@ final class ReportVisualPanel2 extends JPanel {
public void mousePressed(MouseEvent evt) { public void mousePressed(MouseEvent evt) {
int index = tagsList.locationToIndex(evt.getPoint()); int index = tagsList.locationToIndex(evt.getPoint());
String value = tagsModel.getElementAt(index); if (index < tagsModel.getSize() && index >= 0) {
tagStates.put(value, !tagStates.get(value)); String value = tagsModel.getElementAt(index);
tagsList.repaint(); tagStates.put(value, !tagStates.get(value));
updateFinishButton(); tagsList.repaint();
updateFinishButton();
}
} }
}); });
} }