From: Richard Heck Date: Sun, 4 Dec 2011 02:35:38 +0000 (+0000) Subject: We need to create the clone list here, even though the only thing X-Git-Tag: 2.1.0beta1~2286 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8e553c5671a64fe8db96eb45c60122255df29d77;p=lyx.git We need to create the clone list here, even though the only thing in it will be the one Buffer we are cloning. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40358 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index af66521f9f..5ef9f1e771 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -521,7 +521,10 @@ void Buffer::cloneWithChildren(BufferMap & bufmap, CloneList * clones) const Buffer * Buffer::cloneBufferOnly() const { + cloned_buffers.push_back(new CloneList()); + CloneList * clones = cloned_buffers.back(); Buffer * buffer_clone = new Buffer(fileName().absFileName(), false, this); + clones->insert(buffer_clone); // we won't be cloning the children buffer_clone->d->children_positions.clear(); return buffer_clone;