]> git.lyx.org Git - features.git/commitdiff
fix file-insert crash. update problem remaining now.
authorAndré Pönitz <poenitz@gmx.net>
Thu, 10 Jul 2003 11:17:31 +0000 (11:17 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 10 Jul 2003 11:17:31 +0000 (11:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7254 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/text2.C

index a3cc67c144503df8b61fbd735c0231c9726d2e8d..2d828e3be83323b8f44623c604c252a783876dc3 100644 (file)
@@ -951,6 +951,9 @@ void BufferView::Pimpl::MenuInsertLyXFile(string const & filen)
                owner_->message(bformat(_("Document %1$s inserted."), disp_fn));
        else
                owner_->message(bformat(_("Could not insert document %1$s"), disp_fn));
+
+#warning remove this if update() is gone
+       bv_->text->fullRebreak();
 }
 
 
index 5aadd9e7188a4b0e93e55baae3a1ccd282084546..49e58c105a08de90ab0e2ce2229c3e6bb9bea29c 100644 (file)
@@ -726,8 +726,8 @@ void LyXText::redoParagraphs(LyXCursor const & cur,
 
 void LyXText::fullRebreak()
 {
-       need_break_row = rows().begin();
-       partialRebreak();
+       rows().clear();
+       init(bv());
        setCursorIntern(cursor.par(), cursor.pos());
 }