Patch level : 4.0
Files correlati : ve0 e dintorni Ricompilazione Demo : [ ] Commento : Corretta decodifica della tabella MAG nelle maschere git-svn-id: svn://10.65.10.50/trunk@15384 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cc8012bba3
commit
6814ccf261
@ -1351,15 +1351,18 @@ int TTable_names::logic_num(const TString& n)
|
|||||||
{
|
{
|
||||||
// Non cambiare: n puo' essere temporaneo e pieno di spazi!
|
// Non cambiare: n puo' essere temporaneo e pieno di spazi!
|
||||||
TString80 name = n; name.trim();
|
TString80 name = n; name.trim();
|
||||||
|
const int namelen = name.len();
|
||||||
if (isdigit(name[0]) || name[0] == '-')
|
if (isdigit(name[0]) || name[0] == '-')
|
||||||
{
|
{
|
||||||
int num = atoi(name);
|
int num = atoi(name);
|
||||||
if (name[name.len()-1] == '@')
|
if (name[namelen-1] == '@')
|
||||||
num = -num;
|
num = -num;
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name[0] == '%' && name.len() == 4)
|
if (namelen == 3)
|
||||||
|
return LF_TAB;
|
||||||
|
if (namelen == 4 && name[0] == '%')
|
||||||
return LF_TABCOM;
|
return LF_TABCOM;
|
||||||
|
|
||||||
name.upper();
|
name.upper();
|
||||||
@ -1370,9 +1373,6 @@ int TTable_names::logic_num(const TString& n)
|
|||||||
str = (TString*)_names.objptr(name);
|
str = (TString*)_names.objptr(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str == NULL && name.len() == 3)
|
|
||||||
return LF_TAB;
|
|
||||||
|
|
||||||
return str == NULL ? 0 : atoi(*str);
|
return str == NULL ? 0 : atoi(*str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user