Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellString.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--src/Models/CellString.cpp4
diff --git a/src/Models/CellString.cpp b/src/Models/CellString.cpp
index 9c010c3..1b7010f 100644
--- a/src/Models/CellString.cpp
+++ b/src/Models/CellString.cpp
@@ -2,7 +2,11 @@
#include <cstring>
CellString::CellString(const char* str) {
+ if (*str == '"') str++;
value = String(str);
+ if (value[value.get_length() - 1] != '"')
+ throw std::logic_error("Error: Missing closing bracket!");
+
}
double CellString::getNumeralValue() const {