Eliminato errore caricamento form EC (leggeva le righe form dell'ultimo
in lingua anche se non aveva la lingua) git-svn-id: svn://10.65.10.50/trunk@2515 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7d2b45c75f
commit
a3f12ff8c0
@ -3624,7 +3624,15 @@ bool TForm::read_profile()
|
|||||||
const TRectype filter(rprof.curr());
|
const TRectype filter(rprof.curr());
|
||||||
|
|
||||||
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())
|
||||||
{
|
{
|
||||||
|
// controllo lingua per codici profilo
|
||||||
|
char cl = rprof.curr().get("CODPROF").right(1)[0];
|
||||||
|
char cp = _code.right(1)[0];
|
||||||
|
|
||||||
|
// stop se il codice letto e' di un profilo EC in lingua e
|
||||||
|
// il corrente e' ec non in lingua
|
||||||
|
if (!isdigit(cl) && cl != cp) break;
|
||||||
|
|
||||||
const TString& s = rprof.get("SEZ");
|
const TString& s = rprof.get("SEZ");
|
||||||
const char sec = s[0];
|
const char sec = s[0];
|
||||||
const pagetype pt = char2page(s[1]);
|
const pagetype pt = char2page(s[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user