]> git.lyx.org Git - lyx.git/commitdiff
We need to create the clone list here, even though the only thing
authorRichard Heck <rgheck@comcast.net>
Sun, 4 Dec 2011 02:35:38 +0000 (02:35 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 4 Dec 2011 02:35:38 +0000 (02:35 +0000)
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

src/Buffer.cpp

index af66521f9fce219beab31b7bd8740e0cc5a5870e..5ef9f1e771804719887942c1d7b09118e5a4cf8c 100644 (file)
@@ -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;