Resa possibile la gestione di programmi con nome numerico > 512 come

il 740.


git-svn-id: svn://10.65.10.50/trunk@692 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-11-24 13:58:34 +00:00
parent 0134ac4276
commit f9f06059d3
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ class TMenu_application : public TApplication
{
const char* _name;
enum { MAXLEVEL = 1024 };
enum { MAXLEVEL = 512 };
int _first[MAXLEVEL];
TArray _menu; // TAG|DESCRIPTION|ACTION
TBit_array _enabled;
@ -550,7 +550,7 @@ bool TMenu_application::menu(MENU_TAG)
{
bool ok = TRUE;
const int l = atoi(option);
if (l > 0)
if (l > 0 && l < MAXLEVEL)
{
const TString16 flags(row.get());
if (flags.find('F') >= 0)

View File

@ -2,7 +2,7 @@
0|Anagrafiche|1
0|Contabilita'|4|7
0|Terreni e fabbricati|tefa -t
0|Modello 740|.\740 -t
0|Modello 740|740 -t
0|Manutenzione|15
1|Gestione Anagrafiche|1
1|Persone fisiche|ba4 -1 F