From 4e266a5806afd4bd872a171a6e8490948209cade Mon Sep 17 00:00:00 2001 From: supermerill Date: Tue, 9 Nov 2021 14:41:15 +0100 Subject: [PATCH] Try fix wxwidget problem with '<' and '>' supermerill/SuperSlicer#1837 --- src/slic3r/GUI/UnsavedChangesDialog.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index d56e82d80..c3b1071ee 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -922,8 +922,14 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig& config.opt(opt_key)->get_at(opt_idx); return double_to_string(val, opt->precision); } - case coString: - return from_u8(config.opt_string(opt_key)); + case coString: { + //character '<' '>' create strange problems for wxWidget, so remove them (only for the display) + std::string str = config.opt_string(opt_key); + boost::erase_all(str, "<"); + boost::erase_all(str, ">"); + return from_u8(str); + } + case coStrings: { const ConfigOptionStrings* strings = config.opt(opt_key); if (strings) {