mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX: delete special symbol for filename
delete special symbol when plateName for filename Change-Id: Ibb6b6603bc2ca040cb765dbedd013564ebcf3dff (cherry picked from commit 840c085ae842e77b81de73def038fa9b417eac84)
This commit is contained in:
parent
eca3d311d7
commit
ca81c370fd
4 changed files with 21 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
|||
#include <cstddef>
|
||||
#include <algorithm>
|
||||
#include <regex>
|
||||
#include <numeric>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -1610,7 +1609,7 @@ void PartPlate::set_plate_name(const std::string &name)
|
|||
if (boost::equals(m_name, name)) return;
|
||||
m_name = name;
|
||||
|
||||
std::regex reg("[\\\\/:*?\"<>|]");
|
||||
std::regex reg("[\\\\/:*?\"<>|\\0]");
|
||||
m_name= regex_replace(m_name, reg, "");
|
||||
m_name_change = true;
|
||||
if (m_plater) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue