Patch level :10.0
Files correlati :ba3.exe Ricompilazione Demo : [ ] Commento :salvatore numeri romani decisivo per la tabella della IV direttiva git-svn-id: svn://10.65.10.50/trunk@20259 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
90921f3979
commit
0c2be71f6b
@ -35,5 +35,6 @@
|
||||
#define EFF_IMPORTOVAL "IMPORTOVAL"
|
||||
#define EFF_ACCSAL "ACCSAL"
|
||||
#define EFF_SPESE "SPESE"
|
||||
#define EFF_PROGBNP "PROGBNP"
|
||||
|
||||
#endif
|
||||
|
@ -4343,7 +4343,7 @@ const char* TReal_field::reformat(const char* data) const
|
||||
{
|
||||
const int d = decimals();
|
||||
word s = size();
|
||||
if (d == 0 && s <= 6)
|
||||
if ((d == 0 || roman()) && s <= 6)
|
||||
{
|
||||
str.format("%ld", atol(data)); // Gestione "veloce" degli interi
|
||||
}
|
||||
@ -4358,8 +4358,11 @@ const char* TReal_field::reformat(const char* data) const
|
||||
{
|
||||
s = d;
|
||||
if (s <= 0) s = 4;
|
||||
const real r(data);
|
||||
str = r.string(s, 0, '0');
|
||||
}
|
||||
str.right_just(s, '0');
|
||||
else
|
||||
str.right_just(s, '0');
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user