Fix of loacale in path for emboss SVG

This commit is contained in:
Filip Sykala - NTB T15p 2023-10-19 13:54:12 +02:00
parent 6da93f04bf
commit 4d5b91ac57

View File

@ -2173,9 +2173,7 @@ std::string choose_svg_file()
if (input_files.size() != 1)
BOOST_LOG_TRIVIAL(warning) << "SVG file dialog result contain multiple files but only first is used.";
auto &input_file = input_files.front();
std::string path = std::string(input_file.c_str());
std::string path = into_u8(input_files.front());
if (!boost::filesystem::exists(path)) {
BOOST_LOG_TRIVIAL(warning) << "SVG file dialog return invalid path.";
return {};