Fix Unix directory delimiters
This commit is contained in:
parent
2621d66cb0
commit
ee78a17ab9
2 changed files with 2 additions and 2 deletions
src/slic3r/GUI/Gizmos
|
@ -2251,7 +2251,7 @@ void GLGizmoEmboss::store_font_list_to_app_config()
|
|||
|
||||
std::string GLGizmoEmboss::get_file_name(const std::string &file_path)
|
||||
{
|
||||
size_t pos_last_delimiter = file_path.find_last_of('\\');
|
||||
size_t pos_last_delimiter = file_path.find_last_of("/\\");
|
||||
size_t pos_point = file_path.find_last_of('.');
|
||||
size_t offset = pos_last_delimiter + 1;
|
||||
size_t count = pos_point - pos_last_delimiter - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue