#include "Chktex.h"
#include "Converter.h"
#include "Counters.h"
+#include "Cursor.h"
+#include "CutAndPaste.h"
#include "DispatchResult.h"
#include "DocIterator.h"
#include "Encoding.h"
return;
Buffer * buffer_clone = new Buffer(fileName().absFileName(), false, this);
+
+ // The clone needs its own DocumentClass, since running updateBuffer() will
+ // modify it, and we would otherwise be sharing it with the original Buffer.
+ buffer_clone->params().makeDocumentClass();
+ ErrorList el;
+ cap::switchBetweenClasses(
+ params().documentClassPtr(), buffer_clone->params().documentClassPtr(),
+ static_cast<InsetText &>(buffer_clone->inset()), el);
+
bufmap[this] = buffer_clone;
clones->insert(buffer_clone);
buffer_clone->d->clone_list_ = clones;
buffer_clone->d->macro_lock = true;
buffer_clone->d->children_positions.clear();
+
// FIXME (Abdel 09/01/2010): this is too complicated. The whole children_positions and
// math macro caches need to be rethought and simplified.
// I am not sure wether we should handle Buffer cloning here or in BufferList.
cloned_buffers.push_back(new CloneList());
CloneList * clones = cloned_buffers.back();
Buffer * buffer_clone = new Buffer(fileName().absFileName(), false, this);
+
+ // The clone needs its own DocumentClass, since running updateBuffer() will
+ // modify it, and we would otherwise be sharing it with the original Buffer.
+ buffer_clone->params().makeDocumentClass();
+ ErrorList el;
+ cap::switchBetweenClasses(
+ params().documentClassPtr(), buffer_clone->params().documentClassPtr(),
+ static_cast<InsetText &>(buffer_clone->inset()), el);
+
clones->insert(buffer_clone);
buffer_clone->d->clone_list_ = clones;
+
// we won't be cloning the children
buffer_clone->d->children_positions.clear();
return buffer_clone;
* DOCUMENT INPUT/OUTPUT
+- Fixed occasional crash when exporting a document while View>Source is
+ open and being updated (bug).
+
- Load the babel package also if the document is English-only (bug 8423).
- Fix call of nonsense font packages in some localizations.
- When using the knitr module, use new "encoding" parameter of knitr if
available (bug 8504).
-- Respect InsetLayout's PassThru setting for XHTML export.
-
- Fix layout conversion bug involving quoted Flex inset names that do not
contain spaces.
- Clean ids for citations before outputting them. Characters like ":" are
not allowed in HTML identifiers, apparently (bug 8606).
+- Respect InsetLayout's PassThru setting for XHTML export.
+
* TEX2LYX