diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index efb3d37b4..d12edef71 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -1663,7 +1663,11 @@ bool TPrimanota_application::numdoc_handler(TMask_field& f, KEY key) if (!app().npart_is_prot()) // Copiare numero documento nel numero partita? { if (m.get(F_NUMRIF).empty()) - m.set(F_NUMRIF, f.get(), TRUE); + { + const TString16 n = f.get(); + if (n.not_empty()) + m.set(F_NUMRIF, f.get(), TRUE); + } } } return TRUE;