diff --git a/or/or1400.cpp b/or/or1400.cpp index 6f57d1879..dc0c7592e 100755 --- a/or/or1400.cpp +++ b/or/or1400.cpp @@ -614,7 +614,7 @@ void TCreazione_ordini::print_doc(const TRectype & doc) { const TTipo_documento tipo(doc.get(DOC_TIPODOC)); - TFilename rep(tipo.main_print_profile()); + TFilename rep; tipo.main_print_profile(rep); rep.ext("rep"); TString commandline; @@ -797,8 +797,8 @@ void TCreazione_ordini::generate_orders() if (cmdline.blank()) { const TTipo_documento& tipo = d->tipo(); - TFilename rep(tipo.main_print_profile()); - + TFilename rep; + tipo.main_print_profile(rep); rep.ext("rep"); if (rep.custom_path()) // Esiste il nuovo report :-)