On Tue, Aug 22, 2000 at 03:56:44PM +0200, Ben wrote:
> Second bug :
> The plan button in the toolbar : you cannot access to some parts of
> your document which are at the end of a long document. I have attached a
> sample file in the message under "2nd_bug.lyx.gz".
Now this is one big document!
There are actually two problems:
1) The top level menu shows only the first 25 chapters out of 39. The 25 items
limit is due to screen space limitation.
You can increase the limit (if your display resolution allows it) by changing
the line "unsigned int const max_number_of_items = 25;" in src/menus.C
2) The menus for chapter 14-25 are disabled (grayed out).
This happens as there is a limit of 32 submenus in the XForms library.
However, this limit can be changed. I've attached a patch that increases the
limit from 32 to 128 (patch.gz).
Note to lyx-devel:
The patch is for lyx-1.1.5fix1. Should it be applied to the 1.1.5 branch?
Increasing the maximum number of pups doesn't seem to affect performance,
though it costs ~400 bytes per pup, so the increase 32->128 takes about ~40 Kb
of memory.
An alternative approach is to increase the maximum number of pups only when
needed, which is done in patch2.gz.
However, the xforms documentation doesn't say if it is legal to call to
fl_setpup_maxpup() in the middle of the program, when some pups are already
defined.
> Third bug :
> Lyx's crash : create a new file from the template "slides" without
> saving it. Then change the class of the document to seminar. Answer yes,
> click on OK, answer abort, and lyx crashes. The output of the backtrace
> obtained with gdb is included in the file named
> "lyx_crash_backtrace.gz".
I think that the problem is that you have glibc 2.1 on your machine, while
your XForms library is compiled for glibc 2.0. You need to install a correct
version of XForms.
patch.gz
patch2.gz