From 9869d82b7dab3fc9201485ff477594d7bb534b26 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 5 Oct 2020 07:46:41 +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=20il=20punt?= =?UTF-8?q?o.?= 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 d2dcd61..8e815a1 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 ; }