Fixed table sorting bug in custom expression variable and operator selector windows.

Previously, correct item was not inserted if the table had been sorted by clicking on the column headers.
This commit is contained in:
Richard Graham 2012-08-18 07:18:13 +00:00
parent 23825ec9a1
commit 3aedbaa19f
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ public class OperatorSelector extends JDialog {
private void selectOperator(){ private void selectOperator(){
int row = table.getSelectedRow(); int row = table.getSelectedRow();
String str = tableModel.getOperatorAt(row); String str = table.getValueAt(row, 0).toString();
parentBuilder.pasteIntoExpression(str); parentBuilder.pasteIntoExpression(str);
OperatorSelector.this.dispose(); OperatorSelector.this.dispose();
} }

View File

@ -141,7 +141,7 @@ public class VariableSelector extends JDialog {
private void selectVariable(){ private void selectVariable(){
int row = table.getSelectedRow(); int row = table.getSelectedRow();
String str = tableModel.getSymbolAt(row); String str = table.getValueAt(row, 1).toString();
parentBuilder.pasteIntoExpression(str); parentBuilder.pasteIntoExpression(str);
VariableSelector.this.dispose(); VariableSelector.this.dispose();
} }