Aggiunto ai campi roman la formattazione zerofilled
git-svn-id: svn://10.65.10.50/trunk@83 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
beaea780a2
commit
053739a3f7
@ -1,4 +1,4 @@
|
||||
// $Id: maskfld.cpp,v 1.7 1994-08-29 08:25:46 guy Exp $
|
||||
// $Id: maskfld.cpp,v 1.8 1994-08-29 11:03:17 alex Exp $
|
||||
#include <xvt.h>
|
||||
|
||||
#include <applicat.h>
|
||||
@ -2311,7 +2311,10 @@ const char* TReal_field::get_window_data() const
|
||||
{
|
||||
int s = decimals();
|
||||
if (s < 1) s = 4;
|
||||
fpark.format("%*d", s, r);
|
||||
if (_flags.zerofilled)
|
||||
fpark.format("%0*d", s, r);
|
||||
else
|
||||
fpark.format("%*d", s, r);
|
||||
}
|
||||
else fpark.cut(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user