]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
CALS tables: base implementation of row separators on the new code from XHTML.
[features.git] / src / Buffer.cpp
index 5295a4bfc577191af725361c350d23521f2f963e..1867e75513c6ac1f98553914d5e3a1a5536c562d 100644 (file)
@@ -4935,6 +4935,10 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
 {
        LBUFERR(!text().paragraphs().empty());
 
+       // This can be called when loading a file, so that there be no
+       // open undo group.
+       UndoGroupHelper ugh(const_cast<Buffer *>(this));
+
        // Use the master text class also for child documents
        Buffer const * const master = masterBuffer();
        DocumentClass const & textclass = master->params().documentClass();