Mael Hilléreau wrote:
1. Open a document with child documents, each comprising divisions;
2. Show the outline pane. You can see childs' divisions;
3. Select (view) one of the childs;
4. Close this child doc. The focus comes back to the master doc;
5. Click in the outline pane at some point corresponding to the child doc you closed. LyX crashes with SIGSEGV (instead of reopening the child...).

Anyone can confirm?

Yes and the fix is attached.

Seeking the two OKs (before 1.5.0 please :-))

Abdel.
Index: LyXView.cpp
===================================================================
--- LyXView.cpp (revision 18938)
+++ LyXView.cpp (working copy)
@@ -155,6 +155,12 @@
                        updateLabels(*newBuffer->getMasterBuffer());
                }
 
+               if (!b && oldBuffer && oldBuffer->getMasterBuffer() != 
oldBuffer)
+                       // We are closing oldBuffer which was a child document 
so we
+                       // must update the labels and section numbering of its 
master
+                       // Buffer.
+                       updateLabels(*oldBuffer->getMasterBuffer());
+
                connectBuffer(*newBuffer);
 
                // Buffer-dependent dialogs should be updated or

Reply via email to