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:
parent
75a8b10730
commit
ce341c3cb2
@ -4045,6 +4045,7 @@ bool TForm::read_profile()
|
|||||||
rprof.put("TIPOPROF", _name);
|
rprof.put("TIPOPROF", _name);
|
||||||
rprof.put("CODPROF", _code);
|
rprof.put("CODPROF", _code);
|
||||||
const TRectype filter(rprof.curr());
|
const TRectype filter(rprof.curr());
|
||||||
|
TString set("HGBF");
|
||||||
|
|
||||||
for (int err = rprof.read(_isgteq); err == NOERR && rprof.curr() == filter; err = rprof.next())
|
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 TString& s = rprof.get("SEZ");
|
||||||
const char sec = s[0];
|
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 pagetype pt = char2page(s[1]);
|
||||||
const short id = rprof.get_int("ID");
|
const short id = rprof.get_int("ID");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user