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:
parent
23825ec9a1
commit
3aedbaa19f
@ -150,7 +150,7 @@ public class OperatorSelector extends JDialog {
|
||||
|
||||
private void selectOperator(){
|
||||
int row = table.getSelectedRow();
|
||||
String str = tableModel.getOperatorAt(row);
|
||||
String str = table.getValueAt(row, 0).toString();
|
||||
parentBuilder.pasteIntoExpression(str);
|
||||
OperatorSelector.this.dispose();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user