diff --git a/src/slic3r/Utils/PrintagoServer.cpp b/src/slic3r/Utils/PrintagoServer.cpp index 1f4bafb1397..aff8b35f5a3 100644 --- a/src/slic3r/Utils/PrintagoServer.cpp +++ b/src/slic3r/Utils/PrintagoServer.cpp @@ -627,7 +627,9 @@ bool PrintagoDirector::ProcessPrintagoCommand(const PrintagoCommand& cmd) std::string printerConfUrl = parameters["printer_conf"]; std::string printConfUrl = parameters["print_conf"]; std::string filamentConfUrl = parameters["filament_conf"]; - std::string overridePrintConfUrl = parameters["print_override_conf"]; + std::string overridePrintConfUrl = parameters.contains("print_override_conf") ? + parameters["print_override_conf"]: + ""; wxString printagoId = parameters["printago_job"]; if (!printagoId.empty()) { @@ -888,7 +890,7 @@ void PrintagoDirector::OverridePrintSettings() wxFileName printSettingsPath = PBJob::configFiles["print"].GetFullPath(); wxFileName overrideSettingsPath = PBJob::configFiles["print_override"].GetFullPath(); wxFileName printerSettingsPath = PBJob::configFiles["printer"].GetFullPath(); - wxString newProfileName = printSettingsPath.GetName() + "-printago-" + PBJob::jobId.Right(6); + wxString newProfileName = printSettingsPath.GetName().ToStdString() + "-printago-" + PBJob::jobId.Right(6); // Load JSON data from files std::ifstream printSettingsFile(printSettingsPath.GetFullPath());