From f32b35bfa1651d4060ce12d75acc33f73066f31c Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 8 Jan 1996 14:54:01 +0000 Subject: [PATCH] Corretto metodo TPrint_section::tab() e tolta la segnalazione di errore se la prima colonna stampabile era diversa da 1. git-svn-id: svn://10.65.10.50/trunk@2403 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/form.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/include/form.cpp b/include/form.cpp index 0a4f5dbc5..fd0b4c798 100755 --- a/include/form.cpp +++ b/include/form.cpp @@ -2037,8 +2037,14 @@ int TPrint_section::tab(int col) } } // cumulate offsets + int last = 0; for (i = 1; i <= (word)maxcolreached; i++) - _tab[i] += _tab[i-1]; + { + if (_tab[i - 1] != -1) + last = i - 1; + if (_tab[i] != -1) + _tab[i] += _tab[last]; + } } // se manca la colonna, vai a prendere quella immediatamente prima while (_tab[col] == -1 && col > 0) @@ -2535,14 +2541,7 @@ bool TPrint_section::edit(const char* title) for (int i=0; iexist(s, t); - CHECKD(ps, "Can't find section for field %d", id); + CHECKD(ps, "Can't find section for field ", id); return ps->find_field(id); }