diff --git a/ba/ba3300.cpp b/ba/ba3300.cpp index 360a9d596..8501e17a8 100755 --- a/ba/ba3300.cpp +++ b/ba/ba3300.cpp @@ -156,7 +156,8 @@ void BA3300_application::on_firm_change() { TPrintapp::on_firm_change(); - + + if (_msk == NULL) return; _msk->reset(); _nditte->setkey(1); _codice_ditta = get_firm(); @@ -263,8 +264,11 @@ const char* BA3300_application::decodifica_reg () bool BA3300_application::user_create() { - enable_print_menu(); + _msk = NULL; + if (get_firm() == 0L) + if (!set_firm()) return FALSE; + enable_print_menu(); _nditte = new TLocalisamfile (LF_NDITTE); _unloc = new TLocalisamfile (LF_UNLOC); _comuni = new TLocalisamfile (LF_COMUNI);