mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
The BufferList does not know about cloned buffers, so the parent of a
cloned Buffer is always "unloaded" as far as the BufferList is concerned. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33105 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e12d2b8b58
commit
37f4de4cd2
@ -248,7 +248,10 @@ public:
|
||||
// if parent_buffer is not loaded, then it has been unloaded,
|
||||
// which means that parent_buffer is an invalid pointer. So we
|
||||
// set it to null in that case.
|
||||
if (!theBufferList().isLoaded(parent_buffer))
|
||||
// however, the BufferList doesn't know about cloned buffers, so
|
||||
// they will always be regarded as unloaded. in that case, we hope
|
||||
// for the best.
|
||||
if (!cloned_buffer_ && !theBufferList().isLoaded(parent_buffer))
|
||||
parent_buffer = 0;
|
||||
return parent_buffer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user