mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Add a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29056 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ac62d4ef94
commit
46c5596462
@ -228,6 +228,9 @@ public:
|
||||
/// This is here to force the test to be done whenever parent_buffer
|
||||
/// is accessed.
|
||||
Buffer const * parent() const {
|
||||
// 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))
|
||||
parent_buffer = 0;
|
||||
return parent_buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user