diff options
author | YuSanka <yusanka@gmail.com> | 2021-12-07 17:19:04 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2021-12-07 17:19:04 +0300 |
commit | 488eb5128234b3b68fffd6f4059b0fc52bc0b156 (patch) | |
tree | 4773532f7d89a95759c5f7b725f4dec0c670e500 /src/slic3r/GUI/MsgDialog.cpp | |
parent | 1ff7214532a19ea844355b6e1ff1c76b2bc6fbe1 (diff) |
Fix for InfoDialog, when Info about in-recognized loaded config values is shown.
Text in this dialog wasn't marked correctly.
Diffstat (limited to 'src/slic3r/GUI/MsgDialog.cpp')
-rw-r--r-- | src/slic3r/GUI/MsgDialog.cpp | 5 |
1 files 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("<tr>")) { + bool is_marked = msg.Contains("<tr>"); + 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", "<br>"); boost::replace_all(msg_escaped, "\n", "<br>"); if (monospaced_font) |