Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-01-07 11:37:51 +0300
committerbubnikv <bubnikv@gmail.com>2019-01-07 11:37:51 +0300
commit3bd2db8ba6bc8dcdd96cba6cf51c5882fdca6121 (patch)
tree82b1631b87f5a20c922ea08b0d94b5cf2936c747 /src/slic3r/GUI/Field.cpp
parent567b3670613f0b695df8f783d973c53a4b6aae84 (diff)
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.
Diffstat (limited to 'src/slic3r/GUI/Field.cpp')
-rw-r--r--src/slic3r/GUI/Field.cpp2
1 files changed, 1 insertions, 1 deletions
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;