From b5b548a140c2f61b93210df759c27f6ecea9abfb Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Fri, 17 Feb 2023 09:53:22 +0100 Subject: [PATCH] automatic painting: fix error message on windows when converting from std string to wxstring - use from_u8 --- src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp index 9f0d838c3..aeba4aa81 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp @@ -521,7 +521,7 @@ void GLGizmoFdmSupports::auto_generate() { std::string err = wxGetApp().plater()->fff_print().validate(); 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(); return; }