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:
parent
40d873436d
commit
cc947e7e18
@ -1039,7 +1039,10 @@ bool TForm_string::update()
|
||||
}
|
||||
|
||||
TString80 s;
|
||||
s.picture(pic, get()); // riempi la stringa col valore pitturato
|
||||
if (class_name() == "DATA" && _str.empty())
|
||||
s ="";
|
||||
else
|
||||
s.picture(pic, get()); // riempi la stringa col valore pitturato
|
||||
|
||||
if (!delim.empty_items()) // Aggiungi delimitatori
|
||||
{
|
||||
@ -1079,7 +1082,7 @@ class TForm_number : public TForm_string
|
||||
{
|
||||
protected: // TForm_string
|
||||
virtual const char* class_name() const { return "NUMERO"; }
|
||||
virtual bool parse_head(TScanner& scanner);
|
||||
virtual bool parse_head(TScanner& scanner);
|
||||
virtual bool update();
|
||||
virtual int height() const { return 0; }
|
||||
|
||||
@ -2568,7 +2571,7 @@ bool TForm::read_profile()
|
||||
_y = prof.get_int("OFFY");
|
||||
_fontname = prof.get("FONTNAME");
|
||||
_fontsize = prof.get_int("FONTSIZE");
|
||||
_char_to_pos = prof.get_char("CTP");
|
||||
_char_to_pos = prof.get("CTP")[0];
|
||||
_ipx = prof.get_int("IPX");
|
||||
_ipy = prof.get_int("IPY");
|
||||
_fpx = prof.get_int("FPX");
|
||||
|
Loading…
x
Reference in New Issue
Block a user