Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models
diff options
context:
space:
mode:
2 files changed, 3 insertions, 2 deletions
-rw-r--r--src/Models/CellString.cpp3
-rw-r--r--src/Models/Table.cpp2
diff --git a/src/Models/CellString.cpp b/src/Models/CellString.cpp
index 9c010c3..f323a7c 100644
--- a/src/Models/CellString.cpp
+++ b/src/Models/CellString.cpp
@@ -18,5 +18,6 @@ void CellString::parseAndSetValue(const char* str) {
}
void CellString::writeToFile(std::ofstream& file) {
- file << '"' << value << '"';
+ file << '"';
+ const char* strCpy = value.get_cstr();
}
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 3b1c8f2..0231dea 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -155,7 +155,7 @@ void Table::putCell(unsigned row, unsigned col, const char* rawValue) {
rawValue++;
while (*rawValue != '"' && *rawValue != '\0') {
if (*rawValue == '\\') rawValue++;
- buffer.add(*rawValue);
+ buffer.add(*(rawValue++));
}
if (*rawValue == '"' && *(rawValue + 1) != '\0')
throw std::logic_error("Error: Text after closing (inescaped) brace!");