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,11 +96,13 @@ 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());
if (index < tagsModel.getSize() && index >= 0) {
String value = tagsModel.getElementAt(index); String value = tagsModel.getElementAt(index);
tagStates.put(value, !tagStates.get(value)); tagStates.put(value, !tagStates.get(value));
tagsList.repaint(); tagsList.repaint();
updateFinishButton(); updateFinishButton();
} }
}
}); });
} }