From 21ff78e869d24cac60d32663a096136e1458f2d9 Mon Sep 17 00:00:00 2001 From: angelo Date: Mon, 15 Dec 1997 14:25:44 +0000 Subject: [PATCH] Corretta stampa documenti nel caso non si abbia nessuna riga. git-svn-id: svn://10.65.10.50/trunk@5747 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve1100.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ve/ve1100.cpp b/ve/ve1100.cpp index 7d1bdedfb..3bc8bdac8 100755 --- a/ve/ve1100.cpp +++ b/ve/ve1100.cpp @@ -172,7 +172,8 @@ TDocumento_form::TDocumento_form(TRectype&/*TDocumentoEsteso**/ doc, TRelation& _rdocfile = new TRDocisamfile(_doc); relation()->replace(_docfile,0); relation()->replace(_rdocfile,1); - relation()->update(); + if (_doc->physical_rows() > 0) + relation()->update(); modify_pictures(); dec_parm p; const int items = _group_decimals.items(); @@ -261,6 +262,11 @@ void TDocumento_form::print_documento() const int righe = _doc->rows(); + if (righe < 1) + { + TPrintrow r; + pr.print(r); // Riga fasulla... + } set_last_page(FALSE); // E' importante settare questo flag, per evitare "Falli di Piede" eheh :-) for (int r=1; r<=righe; r++)