Corretta gestione campi speciali

git-svn-id: svn://10.65.10.50/trunk@2329 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-12-20 16:18:19 +00:00
parent 8852136b8e
commit c251399251

View File

@ -700,7 +700,7 @@ int TEC_form::find_magic(TString& s, TString& magic1, TString& magic2) const
else
end = s.len()-1;
const TString right(s.right(end+1));
const TString right(s.mid(end+1));
s.cut(pos); s << right;
}
return pos;
@ -1015,7 +1015,7 @@ TEC_form::TEC_form(const TEC_mask& m, bool gesval)
TPrint_section& head = section('H');
pr.headerlen(head.height());
TForm_item& flags = head.find_field(PEC_FLAGS);
TForm_item& flags = find_field('H', last_page, PEC_FLAGS);
TToken_string f(flags.prompt());
_in_valuta = gesval && f.get_char(0) == 'X'; // Il profilo e' in valuta se c'e' il flag di valuta
_fincatura = f.get_int(1);