Fixed indexerror bug which happened when mouse pointer was over a blank region of the operator selector dialog.

This commit is contained in:
Richard Graham 2012-09-02 06:25:14 +00:00
parent 52685901bf
commit daba694267

View File

@ -66,7 +66,7 @@ public class OperatorSelector extends JDialog {
Point p = e.getPoint();
int row = table.rowAtPoint(p);
int col = table.columnAtPoint(p);
if (col == 1){
if (col == 1 && row > -1){
String description = String.valueOf(table.getValueAt(row, 1));
description = TextUtil.wrap(description, 60);
table.setToolTipText(description);