Fixed table sorting bug in custom expression variable and operator selector windows.
[debian/openrocket] / core / src / net / sf / openrocket / gui / customexpression / VariableSelector.java
index 5e0cfe9c16778aef0fa934f72c9731b9ef5e6322..90130e63dca193f59bb4f9369b71c19c19b833d3 100644 (file)
@@ -141,7 +141,7 @@ public class VariableSelector extends JDialog {
        
        private void selectVariable(){
                int row = table.getSelectedRow();
-               String str = tableModel.getSymbolAt(row);
+               String str = table.getValueAt(row, 1).toString();
                parentBuilder.pasteIntoExpression(str);
                VariableSelector.this.dispose();
        }