]> git.lyx.org Git - features.git/blobdiff - src/BufferView_pimpl.C
fix inserting text file into a text inset
[features.git] / src / BufferView_pimpl.C
index 23bc6e0a97657704cb30546e3ea11c1a29d2dc6c..56fe22748f1a1324bd87090959aec72108a0d134 100644 (file)
@@ -809,7 +809,7 @@ void BufferView::Pimpl::MenuInsertLyXFile(string const & filenm)
        owner_->message(bformat(_("Inserting document %1$s..."), disp_fn));
 
        bv_->cursor().clearSelection();
-       bv_->text()->breakParagraph(bv_->cursor());
+       bv_->getLyXText()->breakParagraph(bv_->cursor());
 
        BOOST_ASSERT(bv_->cursor().inTexted());