From c251399251da927da9f850f7f0f6b98c16184756 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 20 Dec 1995 16:18:19 +0000 Subject: [PATCH] Corretta gestione campi speciali git-svn-id: svn://10.65.10.50/trunk@2329 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- sc/sc2100.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc/sc2100.cpp b/sc/sc2100.cpp index 23fc48dba..69ae40ddd 100755 --- a/sc/sc2100.cpp +++ b/sc/sc2100.cpp @@ -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);