From ea0961d2c436bfbe71fa6ce425e3c92f1b71a0ad Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 23 Sep 2020 13:38:46 +0000 Subject: [PATCH] =?UTF-8?q?Include=20:=20-=20modificate=20IsValidDxfName?= =?UTF-8?q?=20e=20ValidateDxfName=20perch=C3=A8=20tra=20i=20caratteri=20vi?= =?UTF-8?q?etati=20nei=20nomi=20dei=20layer=20c'=C3=A8=20anche=20lo=20spaz?= =?UTF-8?q?io.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EGnStringUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EGnStringUtils.h b/EGnStringUtils.h index 78e31c1..d2dcd61 100644 --- a/EGnStringUtils.h +++ b/EGnStringUtils.h @@ -103,7 +103,7 @@ IsValidDxfName( const std::string& sName) { if ( &sName == nullptr || sName.empty()) return false ; - return ( sName.find_first_of( "<>/\\\":;?*|='", 0) == std::string::npos) ; + return ( sName.find_first_of( " <>/\\\":;?*|='", 0) == std::string::npos) ; } //---------------------------------------------------------------------------- @@ -111,7 +111,7 @@ inline bool ValidateDxfName( std::string& sName) { std::string::size_type i ; - while ( ( i = sName.find_first_of( "<>/\\\":;?*|='")) != std::string::npos) + while ( ( i = sName.find_first_of( " <>/\\\":;?*|='")) != std::string::npos) sName[i] = '_' ; return true ; }