1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-23 16:00:09 -08:00

Set output string correctly.

This commit is contained in:
Danila Fedorin 2017-08-05 14:43:24 -07:00
parent a5a1f3a96a
commit 90a0fa2dc7

View File

@ -127,11 +127,12 @@ public class AbacusController implements PluginListener {
if (evaluatedNumber == null) { if (evaluatedNumber == null) {
return ERR_EVAL; return ERR_EVAL;
} }
historyData.add(new HistoryModel(inputField.getText(), constructedTree.toString(), evaluatedNumber.toString())); String resultingString = evaluatedNumber.toString();
historyData.add(new HistoryModel(inputField.getText(), constructedTree.toString(), resultingString));
return resultingString;
} catch (ComputationInterruptedException exception) { } catch (ComputationInterruptedException exception) {
return ERR_STOP; return ERR_STOP;
} }
return "";
} }
@Override @Override