automatic painting: fix error message on windows when converting from std string to wxstring - use from_u8
This commit is contained in:
parent
dc0275f70d
commit
b5b548a140
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user