diff options
Diffstat (limited to 'src/slic3r/GUI/UnsavedChangesDialog.cpp')
-rw-r--r-- | src/slic3r/GUI/UnsavedChangesDialog.cpp | 10 |
1 files 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<ConfigOptionFloats>(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<ConfigOptionStrings>(opt_key); if (strings) { |