Include :

- modificate IsValidDxfName e ValidateDxfName perchè tra i caratteri vietati nei nomi dei layer c'è anche il punto.
This commit is contained in:
Dario Sassi
2020-10-05 07:46:41 +00:00
parent a8aac0e130
commit 9869d82b7d
+2 -2
View File
@@ -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 ;
}