EgtGeomKernel 2.4k3 :
- viene impedito di impostare su entità del DB Nome e Info con valore stringa vuota (si controllava solo il caso di stringa con spazi o equivalenti).
This commit is contained in:
+2
-2
@@ -212,7 +212,7 @@ bool
|
||||
Attribs::SetName( const string& sName)
|
||||
{
|
||||
// se nome non valido, esco con errore
|
||||
if ( ! IsValidVal( sName))
|
||||
if ( sName.empty() || ! IsValidVal( sName))
|
||||
return false ;
|
||||
|
||||
// può essere solo la prima stringa
|
||||
@@ -282,7 +282,7 @@ bool
|
||||
Attribs::SetInfo( const string& sKey, const string& sVal)
|
||||
{
|
||||
// se chiave o valore non validi, esco con errore
|
||||
if ( ! IsValidKey( sKey) || ! IsValidVal( sVal))
|
||||
if ( ! IsValidKey( sKey) || sVal.empty() || ! IsValidVal( sVal))
|
||||
return false ;
|
||||
|
||||
// se è il nome
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user