From ab588003e3bbd844f83b568106f60ef976fc6530 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Fri, 22 Nov 2024 19:54:36 +0800 Subject: [PATCH] FIX: config: fix the warning string missing issue also fix the assert jira: no-jira Change-Id: I6becb689ff6a1dd2894d5004da796ece8fb23324 --- src/slic3r/GUI/GUI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 1b2582ad2..0e8478d6d 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -324,6 +324,14 @@ static void add_config_substitutions(const ConfigSubstitutions& conf_substitutio new_val = wxString("\"") + values[val] + "\"" + " (" + from_u8(_utf8(labels[val])) + ")"; break; } + case coEnums: + { + const std::vector& labels = def->enum_labels; + const std::vector& values = def->enum_values; + std::string val = conf_substitution.new_value->serialize(); + new_val = wxString("\"") + from_u8(_utf8(val)) + "\""; + break; + } case coBool: new_val = conf_substitution.new_value->getBool() ? "true" : "false"; break;