Martin Vermeer a écrit :
On Sun, Apr 23, 2006 at 08:54:22AM +0200, Abdelrazak Younes wrote:
Martin Vermeer a écrit :
On Sat, Apr 22, 2006 at 11:22:53AM +0200, Abdelrazak Younes wrote:
Michael Gerz a écrit :
[EMAIL PROTECTED] wrote:
...
Just for fun, load the attached file and look at the ordering of the
ToC. (I don't see crashes though, but perhaps they'll go away if we fix
this.)
Yes I knew about that problem from some time. Try to load your test
document with lyx-qt4 :-)
You will see that the order is correct but an invalid section is not
shown. I did this choice to avoid problem.
Where does the ordering happen?
In "void QToc::updateToc(int newdepth)" the wrong parent is chosen. This
for loop looked too complicated to me so I prefered to rewrite if with a
recursive function. You can probably adapt it to Qt3 API.
This looks difficult ;-)
Now you understand why I prefered the rewrite approach... ;-)
but how do you produce a crash? That at least
should be fixed.
It was when using outline when there's a depth jump like in in your test
document. But I cannot reproduce it anymore. Maybe my TocBackend patch
fixed it :-)
Abdel.