Corretta la Tform_string::update perche' sbagliava a gestire il messaggio EMPTY
git-svn-id: svn://10.65.10.50/trunk@5241 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
598b6503e4
commit
7a4b9e0f2a
@ -1557,14 +1557,13 @@ bool TForm_string::update()
|
||||
{
|
||||
if (read()) // valuta il campo
|
||||
{
|
||||
TString s;
|
||||
TForm_item::update();
|
||||
// esegue i messaggi
|
||||
const int n = (_message.objptr(1) != NULL && s.empty() ? 1 : 0);
|
||||
const int n = (_message.objptr(1) != NULL && *get()=='\0' ? 1 : 0);
|
||||
do_message(n);
|
||||
// prende il campo e lo stampa
|
||||
s = get();
|
||||
apply_format(s);
|
||||
TString s(get());
|
||||
apply_format(s, picture());
|
||||
put_paragraph(s);
|
||||
}
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user