From 488eb5128234b3b68fffd6f4059b0fc52bc0b156 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 7 Dec 2021 15:19:04 +0100 Subject: [PATCH] Fix for InfoDialog, when Info about in-recognized loaded config values is shown. Text in this dialog wasn't marked correctly. --- src/slic3r/GUI/MsgDialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp index a505c2507..56e990577 100644 --- a/src/slic3r/GUI/MsgDialog.cpp +++ b/src/slic3r/GUI/MsgDialog.cpp @@ -136,7 +136,8 @@ static void add_msg_content(wxWindow* parent, wxBoxSizer* content_sizer, wxStrin int em = wxGetApp().em_unit(); // if message containes the table - if (msg.Contains("")) { + bool is_marked = msg.Contains(""); + if (is_marked) { int lines = msg.Freq('\n') + 1; int pos = 0; while (pos < (int)msg.Len() && pos != wxNOT_FOUND) { @@ -154,7 +155,7 @@ static void add_msg_content(wxWindow* parent, wxBoxSizer* content_sizer, wxStrin } html->SetMinSize(page_size); - std::string msg_escaped = xml_escape(msg.ToUTF8().data()); + std::string msg_escaped = xml_escape(msg.ToUTF8().data(), is_marked); boost::replace_all(msg_escaped, "\r\n", "
"); boost::replace_all(msg_escaped, "\n", "
"); if (monospaced_font)