Fixed indexerror bug which happened when mouse pointer was over a blank region of...
authorrichardgraham <richardgraham@180e2498-e6e9-4542-8430-84ac67f01cd8>
Sun, 2 Sep 2012 06:25:14 +0000 (06:25 +0000)
committerrichardgraham <richardgraham@180e2498-e6e9-4542-8430-84ac67f01cd8>
Sun, 2 Sep 2012 06:25:14 +0000 (06:25 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@1009 180e2498-e6e9-4542-8430-84ac67f01cd8

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);