mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fixed conversion to utf8 of strings entered using Custom G-code dialog
This commit is contained in:
@@ -2165,7 +2165,7 @@ static std::string get_custom_code(const std::string& code_in, double height)
|
|||||||
if (dlg.ShowModal() != wxID_OK)
|
if (dlg.ShowModal() != wxID_OK)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
value = dlg.GetValue().ToStdString();
|
value = into_u8(dlg.GetValue());
|
||||||
valid = GUI::Tab::validate_custom_gcode("Custom G-code", value);
|
valid = GUI::Tab::validate_custom_gcode("Custom G-code", value);
|
||||||
} while (!valid);
|
} while (!valid);
|
||||||
return value;
|
return value;
|
||||||
@@ -2173,7 +2173,7 @@ static std::string get_custom_code(const std::string& code_in, double height)
|
|||||||
if (dlg.ShowModal() != wxID_OK)
|
if (dlg.ShowModal() != wxID_OK)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
return dlg.GetValue().ToStdString();
|
return into_u8(dlg.GetValue());
|
||||||
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user