]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Revert 23154.
[lyx.git] / src / BufferView.cpp
index 30b5fb6a94696da6f477a7fb179576cd59eb4063..dd0fe6f38559c20aa1b6523caf6895c4d3ab35ae 100644 (file)
@@ -1887,7 +1887,7 @@ void BufferView::insertLyXFile(FileName const & fname)
                el = buf.errorList("Parse");
                buffer_.undo().recordUndo(d->cursor_);
                cap::pasteParagraphList(d->cursor_, buf.paragraphs(),
-                                            buf.params().textClassIndex(), el);
+                                            buf.params().getTextClassPtr(), el);
                res = _("Document %1$s inserted.");
        } else {
                res = _("Could not insert document %1$s");