Modificate TPrefix::set_codditta() e TPrefix::test(), in modo
da accettare anche 0 come parametro. Lo scopo e' quello di poter salvare nel prefix anche "com". git-svn-id: svn://10.65.10.50/trunk@4630 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
73a8cf70c6
commit
462cb85e3e
@ -318,7 +318,9 @@ void TPrefix::put()
|
|||||||
|
|
||||||
bool TPrefix::test(long codditta) const
|
bool TPrefix::test(long codditta) const
|
||||||
{
|
{
|
||||||
TString16 s; s.format("%05lda", codditta);
|
TString16 s("com");
|
||||||
|
if (codditta > 0L)
|
||||||
|
s.format("%05lda", codditta);
|
||||||
return test(s);
|
return test(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,7 +337,9 @@ bool TPrefix::set_codditta(long codditta, bool force)
|
|||||||
{
|
{
|
||||||
if (force || test(codditta))
|
if (force || test(codditta))
|
||||||
{
|
{
|
||||||
TString16 s; s.format("%05lda", codditta);
|
TString16 s("com");
|
||||||
|
if (codditta > 0L)
|
||||||
|
s.format("%05lda", codditta);
|
||||||
set(s, force);
|
set(s, force);
|
||||||
put();
|
put();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user