From 983aab300faacd145bf552b450874c743ecab079 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 14 Jun 2022 12:44:03 +0300 Subject: Autocommit at 14.06.2022 @ 12:44 --- src/Models/CellFormula.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Models/CellFormula.cpp') 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); -- cgit v1.3.1-23-gd82d