diff options
| Commit | 983aab300faacd145bf552b450874c743ecab079 (patch) | |
|---|---|---|
| Author | 2022-06-14 12:44:03 +0300 | |
| Committer | 2022-06-14 12:44:03 +0300 | |
| Files | ea92aa1dec12e3e64f614e2dc60aaac737e4b44f /src | |
| FMI-OOP-P2_Tables-983aab300faacd145bf552b450874c743ecab079.tar FMI-OOP-P2_Tables-983aab300faacd145bf552b450874c743ecab079.tar.gz FMI-OOP-P2_Tables-983aab300faacd145bf552b450874c743ecab079.zip | ||
| Parent | a710a7ea125f294c41f51dfad4086faf8964fd03 (diff) | |
Autocommit at 14.06.2022 @ 12:44
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | src/Models/CellFormula.cpp | 4 |
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp index 5146bce..19bea60 100644 --- a/src/Models/CellFormula.cpp +++ b/src/Models/CellFormula.cpp @@ -104,12 +104,12 @@ void CellFormula::parseAndSetValue(const char* str) { W(str); if (*str == 'R') { D(++str, buffer); - loc.left = atoi(buffer.raw_data()); + loc.left = atoi(buffer.raw_data()) - 1; if (*str != 'C') throw std::logic_error("Error: Invalid character!"); str++; buffer.clear(); D(str, buffer); - loc.right = atoi(buffer.raw_data()); + loc.right = atoi(buffer.raw_data()) - 1; } else if (*str >= '0' && *str <= '9') { D(str, buffer); |
