From 3bd2db8ba6bc8dcdd96cba6cf51c5882fdca6121 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 7 Jan 2019 09:37:51 +0100 Subject: [PATCH] Fix of #1598, #1601, #1604, #1612 The text fields were not causing config value updates, broken with 8d1b854acbbb1686d92cd38a696dab2a97dec00d Replaced all wxString.ToStdString() with wxString.ToUTF8().data() to be sure that the strings are correctly converted to UTF8. --- src/slic3r/GUI/Field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 81a90cfbd..928a6236e 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -188,7 +188,7 @@ void Field::get_value_by_opt_type(wxString& str) } } - m_value = str.ToUTF8().data(); + m_value = std::string(str.ToUTF8().data()); break; } default: break;