]> git.lyx.org Git - lyx.git/blobdiff - src/Compare.cpp
Fix a crash when closing tabs
[lyx.git] / src / Compare.cpp
index 51a28f16ec88a41c6a0762f4a0ff0651f3a6905d..7d90891fa85f94000b5bb7f1dbd4c2d9cfed37ec 100644 (file)
@@ -103,7 +103,7 @@ public:
        DocPair()
        {}
 
-       DocPair(DocIterator o_, DocIterator n_)
+       DocPair(DocIterator const & o_, DocIterator const & n_)
                : o(o_), n(n_)
        {}
 
@@ -396,7 +396,7 @@ void Compare::run()
                dest_buffer->params().documentClassPtr();
        // We do not want to share the DocumentClass with the other Buffer.
        // See bug #10295.
-       dest_buffer->params().makeDocumentClass();
+       dest_buffer->params().makeDocumentClass(dest_buffer->isClone(), dest_buffer->isInternal());
 
        doStatusMessage();
        // Do the real work