fix file-insert crash. update problem remaining now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7254 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-07-10 11:17:31 +00:00
parent 46c55ef6b7
commit da0450e82a
2 changed files with 5 additions and 2 deletions

View 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();
}

View 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());
}