Fix UTF8 encoding for SVG "save as"

This commit is contained in:
Filip Sykala - NTB T15p 2024-08-14 12:27:57 +02:00 committed by Lukas Matena
parent bcb1178954
commit 79dc95d3e8

View File

@ -1595,7 +1595,7 @@ void GLGizmoSVG::draw_filename(){
if (dlg.ShowModal() == wxID_OK ){
last_used_directory = dlg.GetDirectory();
wxString out_path = dlg.GetPath();
std::string path{out_path.c_str()};
std::string path{out_path.ToUTF8().data()};
//Slic3r::save(*m_volume_shape.svg_file.image, path);
std::ofstream stream(path);