Corretta format per i campi zerofilled ora allinea solo i numeri e non le stringhe

git-svn-id: svn://10.65.10.50/trunk@715 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-12-02 13:07:39 +00:00
parent b96e339c79
commit 1962a5f4c7

View File

@ -1,4 +1,4 @@
// $Id: maskfld.cpp,v 1.55 1994-11-30 09:03:49 guy Exp $
// $Id: maskfld.cpp,v 1.56 1994-12-02 13:07:39 alex Exp $
#include <xvt.h>
#include <applicat.h>
@ -1914,7 +1914,10 @@ const char* TEdit_field::format(const char* d)
fpark.upper();
if (_flags.zerofilled)
fpark.right_just(_size, '0');
{
if (isdigit(fpark[0]) && real::is_real(fpark))
fpark.right_just(_size, '0');
}
else
if (_flags.rightjust)
fpark.right_just(_size);