Rif. mod. 95/48. Aggiunto un controllo nella TForm_string::update().

Nel caso il form_item corrente sia di tipo DATA e la stringa letta sia
vuota non formatta l'output secondo la picture; in questo modo le
date nulle non vengono stampate secondo il formato 00 00 00.


git-svn-id: svn://10.65.10.50/trunk@2051 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1995-10-31 09:02:00 +00:00
parent 40d873436d
commit cc947e7e18

View File

@ -1039,6 +1039,9 @@ bool TForm_string::update()
} }
TString80 s; TString80 s;
if (class_name() == "DATA" && _str.empty())
s ="";
else
s.picture(pic, get()); // riempi la stringa col valore pitturato s.picture(pic, get()); // riempi la stringa col valore pitturato
if (!delim.empty_items()) // Aggiungi delimitatori if (!delim.empty_items()) // Aggiungi delimitatori
@ -2568,7 +2571,7 @@ bool TForm::read_profile()
_y = prof.get_int("OFFY"); _y = prof.get_int("OFFY");
_fontname = prof.get("FONTNAME"); _fontname = prof.get("FONTNAME");
_fontsize = prof.get_int("FONTSIZE"); _fontsize = prof.get_int("FONTSIZE");
_char_to_pos = prof.get_char("CTP"); _char_to_pos = prof.get("CTP")[0];
_ipx = prof.get_int("IPX"); _ipx = prof.get_int("IPX");
_ipy = prof.get_int("IPY"); _ipy = prof.get_int("IPY");
_fpx = prof.get_int("FPX"); _fpx = prof.get_int("FPX");