Fixed indexerror bug which happened when mouse pointer was over a blank region of the operator selector dialog.
This commit is contained in:
parent
52685901bf
commit
daba694267
@ -66,7 +66,7 @@ public class OperatorSelector extends JDialog {
|
|||||||
Point p = e.getPoint();
|
Point p = e.getPoint();
|
||||||
int row = table.rowAtPoint(p);
|
int row = table.rowAtPoint(p);
|
||||||
int col = table.columnAtPoint(p);
|
int col = table.columnAtPoint(p);
|
||||||
if (col == 1){
|
if (col == 1 && row > -1){
|
||||||
String description = String.valueOf(table.getValueAt(row, 1));
|
String description = String.valueOf(table.getValueAt(row, 1));
|
||||||
description = TextUtil.wrap(description, 60);
|
description = TextUtil.wrap(description, 60);
|
||||||
table.setToolTipText(description);
|
table.setToolTipText(description);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user