diff --git a/src/Mod/Spreadsheet/App/Sheet.cpp b/src/Mod/Spreadsheet/App/Sheet.cpp index 241bdf30e9..589b0d90a0 100644 --- a/src/Mod/Spreadsheet/App/Sheet.cpp +++ b/src/Mod/Spreadsheet/App/Sheet.cpp @@ -342,7 +342,8 @@ bool Sheet::exportToFile(const std::string& filename, std::string str = field.str(); - if (quoteChar && str.find(quoteChar) != std::string::npos) { + if (quoteChar + && str.find_first_of(std::string(quoteChar, delimiter)) != std::string::npos) { writeEscaped(str, quoteChar, escapeChar, file); } else {