mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 18:49:05 +08:00
Fix of the previous commit
This commit is contained in:
parent
1ecb98e35f
commit
08388d3daa
@ -900,7 +900,7 @@ void Choice::msw_rescale()
|
|||||||
size_t counter = 0;
|
size_t counter = 0;
|
||||||
bool labels = ! m_opt.enum_labels.empty();
|
bool labels = ! m_opt.enum_labels.empty();
|
||||||
for (const std::string &el : labels ? m_opt.enum_labels : m_opt.enum_values) {
|
for (const std::string &el : labels ? m_opt.enum_labels : m_opt.enum_values) {
|
||||||
wxString text = labels ? _(el) : wxString::ToUTF8(el.c_str());
|
wxString text = labels ? _(el) : wxString::FromUTF8(el.c_str());
|
||||||
field->Append(text);
|
field->Append(text);
|
||||||
if (text == selection)
|
if (text == selection)
|
||||||
idx = counter;
|
idx = counter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user