From 47ac23a568c488198d6ce9f67c56ceddf2d2cb03 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 14 Nov 1995 11:14:54 +0000 Subject: [PATCH] Modificata la creazione del form: ora viene passato "" in caso _codice sia == 0. git-svn-id: svn://10.65.10.50/trunk@2148 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/Attic/cg1400.cpp | 2 +- cg/cg1400.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cg/Attic/cg1400.cpp b/cg/Attic/cg1400.cpp index 98c42008d..c64c7482c 100755 --- a/cg/Attic/cg1400.cpp +++ b/cg/Attic/cg1400.cpp @@ -328,7 +328,7 @@ bool TStampa_deleghe_IVA::print_deleghe() { bool ok = printer().open(); bool arng = FALSE; - TForm f(_profilo, format("%05ld",_codice)); + TForm f(_profilo, (_codice != 0) ? format("%05ld",_codice) : ""); TCursor& cur = *f.cursor(); TLocalisamfile& delega = cur.file(); diff --git a/cg/cg1400.cpp b/cg/cg1400.cpp index 98c42008d..c64c7482c 100755 --- a/cg/cg1400.cpp +++ b/cg/cg1400.cpp @@ -328,7 +328,7 @@ bool TStampa_deleghe_IVA::print_deleghe() { bool ok = printer().open(); bool arng = FALSE; - TForm f(_profilo, format("%05ld",_codice)); + TForm f(_profilo, (_codice != 0) ? format("%05ld",_codice) : ""); TCursor& cur = *f.cursor(); TLocalisamfile& delega = cur.file();