diff --git a/sc/sc3100.cpp b/sc/sc3100.cpp index e8d8aee67..531e1e3e5 100755 --- a/sc/sc3100.cpp +++ b/sc/sc3100.cpp @@ -743,7 +743,8 @@ bool TForm_EC_editor::edit(char s, pagetype p) r.put("ID",0); TToken_string t(get_formato_data(),'\n'); t.add(get_formato_numero()); - r.put("SPECIAL",t); + if (t.trim().not_empty()) + r.put("SPECIAL",t); if (r.write()!= NOERR) r.rewrite(); } } @@ -790,8 +791,11 @@ void TForm_EC_editor::print() pict.y() = _msk->get_int(F_BACKY); form().offset_y() = _msk->get_int(F_SY); form().offset_x() = _msk->get_int(F_SX); - form().set_mode((bkg_mode)_msk->get_int(F_FINK)); - if (form().mode() == none) gen_fink = FALSE; + int fnk_mode = _msk->get_int(F_FINK); + if (fnk_mode == 0) + gen_fink = FALSE; + else + form().set_fink_mode(fnk_mode == 1 ? FALSE : TRUE); } // Schiaffa dentro le stringhe di esempio per ogni campo che non ha prompt o riferimenti sul file // per i campi memo si copia _memo in _prompt @@ -866,6 +870,8 @@ bool TForm_EC_editor::ask_profile() } if (k == K_ENTER) { + set_formato_data(""); + set_formato_numero(""); check_form(); set_form(new TForm_EC(fform, (fcode!=0) ? cod : "", extra() ? 2 :1, fdesc)); diff --git a/sc/sc3100c.uml b/sc/sc3100c.uml index 286f81534..9374ec0d8 100755 --- a/sc/sc3100c.uml +++ b/sc/sc3100c.uml @@ -75,9 +75,9 @@ END LIST F_FINK 2 10 BEGIN PROMPT 1 7 "Fincatura " -ITEM "0|Nessuna" MESSAGE ENABLE,5@ -ITEM "1|Testo" MESSAGE CLEAR,5@ -ITEM "2|Grafica" MESSAGE ENABLE,5@ +ITEM "0|Nessuna" +ITEM "1|Testo" +ITEM "2|Grafica" END GROUPBOX DLG_NULL 45 5