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:
parent
a5a1f3a96a
commit
90a0fa2dc7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user