From 662de52448ec76efccb28a70b56be6d66b144f8a Mon Sep 17 00:00:00 2001 From: "zorro.zhang" Date: Mon, 1 Jul 2024 18:21:01 +0800 Subject: [PATCH] FIX: Load Filament Json Error JIRA: none Change-Id: I4ca521439cbd1a9cd9e80a0991365409ed74ce04 --- src/slic3r/GUI/WebGuideDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/WebGuideDialog.cpp b/src/slic3r/GUI/WebGuideDialog.cpp index 5e463e9cc..0c2b11f5d 100644 --- a/src/slic3r/GUI/WebGuideDialog.cpp +++ b/src/slic3r/GUI/WebGuideDialog.cpp @@ -1017,8 +1017,8 @@ int GuideFrame::GetFilamentInfo( std::string VendorDirectory, json & pFilaList, std::string FPath = pFilaList[FName]["sub_path"]; BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " Before Format Inherits Path: VendorDirectory - " << VendorDirectory << ", sub_path - " << FPath; - wxString strNewFile = wxString::Format("%s%c%s", wxString(VendorDirectory.c_str(), wxConvUTF8), boost::filesystem::path::preferred_separator, FPath); - boost::filesystem::path inherits_path(w2s(strNewFile)); + std::string strNewFile = VendorDirectory + "/" + FPath; + boost::filesystem::path inherits_path(strNewFile); //boost::filesystem::path nf(strNewFile.c_str()); if (boost::filesystem::exists(inherits_path))