diff options
| Commit | f9f40661ea77882f5bf88cf70c46398a6a5da29e (patch) | |
|---|---|---|
| Author | 2022-05-29 10:34:35 +0300 | |
| Committer | 2022-05-29 10:34:35 +0300 | |
| Files | 5d8f4c2658d9ebc3e375b4f1891dfbfb905524c6 /src | |
| FMI-OOP-P2_Tables-f9f40661ea77882f5bf88cf70c46398a6a5da29e.tar FMI-OOP-P2_Tables-f9f40661ea77882f5bf88cf70c46398a6a5da29e.tar.gz FMI-OOP-P2_Tables-f9f40661ea77882f5bf88cf70c46398a6a5da29e.zip | ||
| Parent | 08df0c2e39e87512d0f83732cddf8ee26050d8d3 (diff) | |
Autocommit at 29.05.2022 @ 10:34
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/Models/CellFormula.cpp | 2 |
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp index 2425ea8..98e1abb 100644 --- a/src/Models/CellFormula.cpp +++ b/src/Models/CellFormula.cpp @@ -14,7 +14,7 @@ double pow(double x, unsigned y) { double CellFormula::calculate(unsigned index) { double lval = formula[index].left->getNumeralValue(); - if (formula[index].right < 0) { + while (formula[index].right < 0) { switch (-formula[index++].right) { case '+' : lval += formula[index].left->getNumeralValue(); break; case '-' : lval -= formula[index].left->getNumeralValue(); break; |
