Include :
- modificate IsValidDxfName e ValidateDxfName perchè tra i caratteri vietati nei nomi dei layer c'è anche lo spazio.
This commit is contained in:
+2
-2
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user