|
|
@ -120,11 +120,12 @@ public class CellFormulaQuickEditor extends CellQuickEditor { |
|
|
|
public void doOk() { |
|
|
|
public void doOk() { |
|
|
|
BaseFormula fm = formulaPane.update(); |
|
|
|
BaseFormula fm = formulaPane.update(); |
|
|
|
if (fm.getContent().length() <= 1) { |
|
|
|
if (fm.getContent().length() <= 1) { |
|
|
|
|
|
|
|
fm.setContent(DEFAULT_FORMULA); |
|
|
|
formulaTextField.setText(DEFAULT_FORMULA); |
|
|
|
formulaTextField.setText(DEFAULT_FORMULA); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
formulaTextField.setText(fm.getContent()); |
|
|
|
formulaTextField.setText(fm.getContent()); |
|
|
|
editingCellElement.setValue(fm); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
editingCellElement.setValue(fm); |
|
|
|
} |
|
|
|
} |
|
|
|
}).setVisible(true); |
|
|
|
}).setVisible(true); |
|
|
|
} |
|
|
|
} |
|
|
|