diff --git a/ve/ve0100.cpp b/ve/ve0100.cpp index 138ebdf87..57d73b72a 100755 --- a/ve/ve0100.cpp +++ b/ve/ve0100.cpp @@ -179,13 +179,17 @@ void TMotore_application::init_modify_mode( TMask& m ) enable_menu_item(M_FILE_PRINT, provv == "D" && enable_print); if (provv[0] == 'P') { - m.hide(DLG_PRINT); - m.show(DLG_CONFERMA); +// m.hide(DLG_PRINT); +// m.show(DLG_CONFERMA); + m.disable(DLG_PRINT); + m.enable(DLG_CONFERMA); } else { - m.show(DLG_PRINT); - m.hide(DLG_CONFERMA); +// m.show(DLG_PRINT); +// m.hide(DLG_CONFERMA); + m.enable(DLG_PRINT); + m.disable(DLG_CONFERMA); m.enable(DLG_PRINT, enable_print); } m.enable(DLG_ELABORA); @@ -975,6 +979,11 @@ void TMotore_application::print() } } } + else + { + rep.ext(""); + message_box("Il profilo %s non esiste", (const char *) rep); + } } } diff --git a/ve/velib02.cpp b/ve/velib02.cpp index b05d89647..8a4f6e3e3 100755 --- a/ve/velib02.cpp +++ b/ve/velib02.cpp @@ -159,7 +159,7 @@ bool TRiga_documento::_rit_calc = false; TRiga_documento::TRiga_documento(TDocumento* doc, const char * tipo) : TAuto_variable_rectype(LF_RIGHEDOC), _doc(doc) { - set_memo_fld("G1"); + set_memo_fld("RG1"); if (tipo) set_tipo(tipo); } @@ -168,7 +168,7 @@ TRiga_documento::TRiga_documento(const TRiga_documento & row) : TAuto_variable_rectype(LF_RIGHEDOC), _doc(NULL) { - set_memo_fld("G1"); + set_memo_fld("RG1"); copy(row); } @@ -176,7 +176,7 @@ TRiga_documento::TRiga_documento(const TRiga_documento& rec, TDocumento* doc, const char * tipo) : TAuto_variable_rectype(rec), _doc(doc) { - set_memo_fld("G1"); + set_memo_fld("RG1"); if (tipo) set_tipo(tipo); }