too many updates of the "outline" on branch 2.5.x

Julien SCORDIA via lyx-devel <[email protected]>
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
Hello LyX developers,

I have recently upgraded from LyX 2.3.2 to the 2.5.x branch.

I find that on a simple LyX document with a section and subsection,


            1 foo


              1.1 bar

        bar1
        bar2
        bar3

When putting the cursor after bar2 and typing on the return key, the outline is updated. Why? Right now I cannot try in 2.3.2, but it seems to me it was not the case. On a large file I am working on, I obtain some LyX crashes (without precise scenario, unfortunately), and I suspect that these frequent outline updates are linked to that.

To avoid these updates, it is enough to simply return  before updateViewNow() in GuiToc.cpp:

        void GuiToc::enableView(bool enable)
        {
             if (!enable)
                 // In the opposite case, updateView() will be called anyway.
                 return;
                 widget_->updateViewNow();
        }

I have not been able to find which method is calling enableView() again and again.

Am I right that there is a problem to solve here?

Thanks,

Julien

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.