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:
luca 2010-03-23 14:55:27 +00:00
parent 90921f3979
commit 0c2be71f6b
2 changed files with 6 additions and 2 deletions

View File

@ -35,5 +35,6 @@
#define EFF_IMPORTOVAL "IMPORTOVAL"
#define EFF_ACCSAL "ACCSAL"
#define EFF_SPESE "SPESE"
#define EFF_PROGBNP "PROGBNP"
#endif

View File

@ -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