mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 18:01:59 +08:00
Fixed loading of SLA archives when path contains non-ASCII characters
This commit is contained in:
parent
b6f1a8e8db
commit
dcde3148a5
@ -105,8 +105,8 @@ void SLAImportJob::prepare()
|
||||
{
|
||||
reset();
|
||||
|
||||
auto path = p->import_dlg->get_path();
|
||||
auto nm = wxFileName(path);
|
||||
const std::string path = p->import_dlg->get_path();
|
||||
auto nm = wxFileName(from_u8(path));
|
||||
p->path = !nm.Exists(wxFILE_EXISTS_REGULAR) ? "" : nm.GetFullPath();
|
||||
if (p->path.empty()) {
|
||||
p->err = _u8L("The file does not exist.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user