Aggiunta alla readprofile(). Salta eventuali sezioni sconosciute.

git-svn-id: svn://10.65.10.50/trunk@3597 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-09-17 10:45:50 +00:00
parent 75a8b10730
commit ce341c3cb2

View File

@ -4045,6 +4045,7 @@ bool TForm::read_profile()
rprof.put("TIPOPROF", _name);
rprof.put("CODPROF", _code);
const TRectype filter(rprof.curr());
TString set("HGBF");
for (int err = rprof.read(_isgteq); err == NOERR && rprof.curr() == filter; err = rprof.next())
{
@ -4058,6 +4059,7 @@ bool TForm::read_profile()
const TString& s = rprof.get("SEZ");
const char sec = s[0];
if (set.find(sec)<0) continue; // Se non fa parte di una sezione standard la salta
const pagetype pt = char2page(s[1]);
const short id = rprof.get_int("ID");