From c70316075fdedfb50e4566f47fc69e0876eb268c Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Sat, 7 Oct 2023 18:01:18 +0800 Subject: [PATCH] FIX: Unhandled unknown exception terminating the application when cali Jira: 4386 Change-Id: I80ab306882176cfe2453f791992911fb4de19d83 --- src/slic3r/Utils/CalibUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/Utils/CalibUtils.cpp b/src/slic3r/Utils/CalibUtils.cpp index 04688ef59..cfd8df023 100644 --- a/src/slic3r/Utils/CalibUtils.cpp +++ b/src/slic3r/Utils/CalibUtils.cpp @@ -11,7 +11,8 @@ namespace Slic3r { namespace GUI { std::shared_ptr CalibUtils::print_job; -static const std::string temp_dir = fs::path(fs::temp_directory_path() / "calib").string(); +wxString wxstr_temp_dir = fs::path(fs::temp_directory_path() / "calib").wstring(); +static const std::string temp_dir = wxstr_temp_dir.utf8_string(); static const std::string temp_gcode_path = temp_dir + "/temp.gcode"; static const std::string path = temp_dir + "/test.3mf"; static const std::string config_3mf_path = temp_dir + "/test_config.3mf";