Re: [patch] bug 5514: loading emergency save of master document can crash lyx

2008-12-06 Thread Guenter Milde
> Therefore I have added a bool to checkAndLoadLyXFile that skips the > test for dirtyness and simply loads the master only if it is not > already loaded. The bool is only used in this specific case, so there > should be no surprises. This is exactly what I wanted. Thanks, Günter

Re: [patch] bug 5514: loading emergency save of master document can crash lyx

2008-12-05 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: > > Therefore I have added a bool to checkAndLoadLyXFile that skips the test > > for dirtyness and simply loads the master only if it is not already > > loaded. The bool is only used in this specific case, so there should

Re: [patch] bug 5514: loading emergency save of master document can crash lyx

2008-12-05 Thread Jean-Marc Lasgouttes
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: > Therefore I have added a bool to checkAndLoadLyXFile that skips the test for > dirtyness and simply loads the master only if it is not already loaded. The > bool is only used in this specific case, so there should be no surprises. This looks good.

[patch] bug 5514: loading emergency save of master document can crash lyx

2008-12-05 Thread Jürgen Spitzmüller
http://bugzilla.lyx.org/show_bug.cgi?id=5514 With the new master_buffer param set, a child document checks if his master is already opened, and if not, it opens it (in the background) via checkAndLoadLyXFile. The problem which triggers this bug is that checkAndLoadLyXFile checks if the file is