automatic painting: fix error message on windows when converting from std string to wxstring - use from_u8

This commit is contained in:
PavelMikus 2023-02-17 09:53:22 +01:00
parent dc0275f70d
commit b5b548a140

View File

@ -521,7 +521,7 @@ void GLGizmoFdmSupports::auto_generate()
{ {
std::string err = wxGetApp().plater()->fff_print().validate(); std::string err = wxGetApp().plater()->fff_print().validate();
if (!err.empty()) { if (!err.empty()) {
MessageDialog dlg(GUI::wxGetApp().plater(), _L("Automatic painting requires valid print setup. \n") + err, _L("Warning"), wxOK); MessageDialog dlg(GUI::wxGetApp().plater(), _L("Automatic painting requires valid print setup. \n") + from_u8(err), _L("Warning"), wxOK);
dlg.ShowModal(); dlg.ShowModal();
return; return;
} }