From ce341c3cb2813d23422a7794ecd27b612c1ec453 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 17 Sep 1996 10:45:50 +0000 Subject: [PATCH] Aggiunta alla readprofile(). Salta eventuali sezioni sconosciute. git-svn-id: svn://10.65.10.50/trunk@3597 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/form.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/form.cpp b/include/form.cpp index ddf4ecde4..e818ba4ae 100755 --- a/include/form.cpp +++ b/include/form.cpp @@ -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");