mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
parent
f64efe2f63
commit
a0bd27d8b1
@ -538,10 +538,10 @@ Buffer::~Buffer()
|
||||
for (; it != end; ++it) {
|
||||
Buffer * child = const_cast<Buffer *>(it->first);
|
||||
if (theBufferList().isLoaded(child)) {
|
||||
if (theBufferList().isOthersChild(this, child))
|
||||
child->setParent(0);
|
||||
else
|
||||
theBufferList().release(child);
|
||||
if (theBufferList().isOthersChild(this, child))
|
||||
child->setParent(0);
|
||||
else
|
||||
theBufferList().release(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -436,7 +436,7 @@ Buffer * InsetInclude::loadIfNeeded() const
|
||||
// Use cached Buffer if possible.
|
||||
if (child_buffer_ != 0) {
|
||||
if (theBufferList().isLoaded(child_buffer_)
|
||||
// additional sanity check: make sure the Buffer really is
|
||||
// additional sanity check: make sure the Buffer really is
|
||||
// associated with the file we want.
|
||||
&& child_buffer_ == theBufferList().getBuffer(included_file))
|
||||
return child_buffer_;
|
||||
|
Loading…
Reference in New Issue
Block a user