From e83d89dee74f51152dbaa3f2093aba45c3e1cbb7 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 26 Jan 2022 13:18:52 +0100 Subject: [PATCH] Fix of escape_strings_cstyle(), which did not enclose a single word string containing semicolon ';' character into quotes. --- src/libslic3r/Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Config.cpp b/src/libslic3r/Config.cpp index f5902f403..18b97665d 100644 --- a/src/libslic3r/Config.cpp +++ b/src/libslic3r/Config.cpp @@ -73,7 +73,7 @@ std::string escape_strings_cstyle(const std::vector &strs) bool should_quote = strs.size() == 1 && str.empty(); for (size_t i = 0; i < str.size(); ++ i) { char c = str[i]; - if (c == ' ' || c == '\t' || c == '\\' || c == '"' || c == '\r' || c == '\n') { + if (c == ' ' || c == ';' || c == '\t' || c == '\\' || c == '"' || c == '\r' || c == '\n') { should_quote = true; break; }