From 9e3c8b697a17bd4cb2763e2c988e32c7cb3e9fdd Mon Sep 17 00:00:00 2001 From: DarioS Date: Mon, 21 Nov 2022 16:05:56 +0100 Subject: [PATCH] =?UTF-8?q?EgtGeomKernel=202.4k3=20:=20-=20viene=20impedit?= =?UTF-8?q?o=20di=20impostare=20su=20entit=C3=A0=20del=20DB=20Nome=20e=20I?= =?UTF-8?q?nfo=20con=20valore=20stringa=20vuota=20(si=20controllava=20solo?= =?UTF-8?q?=20il=20caso=20di=20stringa=20con=20spazi=20o=20equivalenti).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Attribs.cpp | 4 ++-- EgtGeomKernel.rc | Bin 11726 -> 11726 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Attribs.cpp b/Attribs.cpp index 3eb2844..b9648a3 100644 --- a/Attribs.cpp +++ b/Attribs.cpp @@ -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 diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 0a0d3d708b64a69a47f31ebf7d779968f1a1b81f..e8fc6c62b531bec65f3c138af7e63640f6810e4a 100644 GIT binary patch delta 110 zcmX>XeJ*;#A2vqg&G-4vGfh^I(V2WtQH{}fvZAo=<^U--#?6zseVD=0wm=Fh>;V)O Q4#E(g#Dd413gs{^0PcDsSO5S3 delta 110 zcmX>XeJ*;#A2vp#&G-4vGfh^I(V2WtQH{}PvZAo=<^U--#?6zseVD=0wm=Fh>;V)O Q4#E(g#Dd413gs{^0PL_LPyhe`