Gestione descrizione lunga nei totali

git-svn-id: svn://10.65.10.50/trunk@2293 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-12-14 14:31:30 +00:00
parent fc96dc05b5
commit ab284ef25a

View File

@ -669,6 +669,9 @@ void TEC_form::print_total(int riga, const THash_object& o, short id)
TForm_item& desc_field = find_field('F', odd_page, id);
if (desc_field.shown())
{
const int old_width = desc_field.width();
desc_field.set_width(80); // Allunga campo descrizione
TString s(80); s = desc_field.prompt();
change_magic_names(o, s);
@ -677,6 +680,8 @@ void TEC_form::print_total(int riga, const THash_object& o, short id)
TPrint_section& body = section('B');
row.print_on(body);
desc_field.set_width(old_width); // Ripristina lunghezza originaria
printer().setfooterline(riga + desc_field.y() -1, body.row(0));
}
}