]> git.lyx.org Git - lyx.git/blobdiff - src/Undo.cpp
grammar
[lyx.git] / src / Undo.cpp
index e7c84f500915b18ca3495bebf503c76dd3bb732a..a870241d13b2475df8d9b25d18d07bce8c1ec15d 100644 (file)
@@ -450,10 +450,8 @@ void Undo::Private::doUndoRedoAction(CursorData & cur, UndoElementStack & stack,
                otherstack.top().bparams = new BufferParams(buffer_.params());
                DocumentClassConstPtr olddc = buffer_.params().documentClassPtr();
                buffer_.params() = *undo.bparams;
-               // The error list is not supposed to be helpful here.
-               ErrorList el;
                cap::switchBetweenClasses(olddc, buffer_.params().documentClassPtr(),
-                       static_cast<InsetText &>(buffer_.inset()), el);
+                       static_cast<InsetText &>(buffer_.inset()));
        } else if (dit.inMathed()) {
                // We stored the full cell here as there is not much to be
                // gained by storing just 'a few' paragraphs (most if not