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();