Do not crash anymore by looking for help comments in form files when controls are public.

[COMPILER]
* BUG: Do not crash anymore by looking for help comments in form files when controls are public.
This commit is contained in:
gambas 2020-03-04 01:37:29 +01:00
parent 066f919a04
commit bc7d0fc7df

View file

@ -110,6 +110,9 @@ void HELP_search_and_print(FILE *file, int line)
fprintf(stderr, "HELP_search_and_print: %s: %d\n", FILE_get_name(JOB->name), line);
#endif
if (line >= FORM_FIRST_LINE)
return;
i = line - JOB->help_first_line;
if (i < 0)