Corretto errore MI0661
git-svn-id: svn://10.65.10.50/trunk@1218 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f1ad121f67
commit
d86e077ebf
@ -794,8 +794,12 @@ int TCaus_app::re_write(const TMask& m, bool re)
|
|||||||
TLocalisamfile& rcaus = _rel->lfile(LF_RCAUSALI);
|
TLocalisamfile& rcaus = _rel->lfile(LF_RCAUSALI);
|
||||||
|
|
||||||
m.autosave(_rel);
|
m.autosave(_rel);
|
||||||
|
if (!re && caus.write() == _isreinsert)
|
||||||
|
return _isreinsert;
|
||||||
|
|
||||||
for (int i = 0; i < ss().items(); i++)
|
int err = NOERR;
|
||||||
|
|
||||||
|
for (int i = 0; err == NOERR && i < ss().items(); i++)
|
||||||
{
|
{
|
||||||
TToken_string &riga = ss().row(i);
|
TToken_string &riga = ss().row(i);
|
||||||
|
|
||||||
@ -822,21 +826,20 @@ int TCaus_app::re_write(const TMask& m, bool re)
|
|||||||
rcaus.put (RCA_CODDESC, coddesc);
|
rcaus.put (RCA_CODDESC, coddesc);
|
||||||
if (_righe_gia_presenti[i+1])
|
if (_righe_gia_presenti[i+1])
|
||||||
{
|
{
|
||||||
rcaus.rewrite();
|
err = rcaus.rewrite();
|
||||||
_righe_gia_presenti.reset(i+1);
|
_righe_gia_presenti.reset(i+1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rcaus.write();
|
err = rcaus.write();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (re)
|
if (err == NOERR &&re)
|
||||||
{
|
{
|
||||||
togli_dal_file(codcau); // Elimina dal file le righe rimaste nel bitarray
|
togli_dal_file(codcau); // Elimina dal file le righe rimaste nel bitarray
|
||||||
return caus.rewrite();
|
return caus.rewrite();
|
||||||
}
|
}
|
||||||
else
|
else return err;
|
||||||
return caus.write();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user