Fixed indexerror bug which happened when mouse pointer was over a blank region of...
[debian/openrocket] / core / src / net / sf / openrocket / gui / customexpression / OperatorSelector.java
index be13514f072c292b6b8ecc53bc4581c618ffbdcc..d51af30ccac27dedd5ac90e85565b9a14c291a5a 100644 (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);