mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Compile fix for r28492.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28493 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d1074d1dbc
commit
fe980636db
@ -290,9 +290,10 @@ Buffer::~Buffer()
|
||||
Impl::BufferPositionMap::iterator it = d->children_positions.begin();
|
||||
Impl::BufferPositionMap::iterator end = d->children_positions.end();
|
||||
for (; it != end; ++it) {
|
||||
Buffer * child = const_cast<Buffer *>(it->first);
|
||||
// The child buffer might have been closed already.
|
||||
if (theBufferList().isLoaded(child))
|
||||
theBufferList().releaseChild(this, const_cast<Buffer *>(it->first));
|
||||
theBufferList().releaseChild(this, child);
|
||||
}
|
||||
|
||||
// clear references to children in macro tables
|
||||
|
Loading…
Reference in New Issue
Block a user