Fix bug 2982 (two undo steps are needed to undo inset-dissolve)

* src/CutAndPaste.C
	(pasteParagraphList): Don't record undo info here...

	* src/BufferView.C
	(BufferView::menuInsertLyXFile): ... but here instead


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15886 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-11-12 15:48:33 +00:00
parent cf7084771c
commit c0725c5beb
2 changed files with 1 additions and 2 deletions

View File

@ -1369,6 +1369,7 @@ void BufferView::menuInsertLyXFile(string const & filenm)
ErrorList & el = buffer_->errorList("Parse");
// Copy the inserted document error list into the current buffer one.
el = buf.errorList("Parse");
recordUndo(cursor_);
cap::pasteParagraphList(cursor_, buf.paragraphs(),
buf.params().textclass, el);
res = _("Document %1$s inserted.");

View File

@ -621,8 +621,6 @@ void pasteParagraphList(LCursor & cur, ParagraphList const & parlist,
LyXText * text = cur.text();
BOOST_ASSERT(text);
recordUndo(cur);
pit_type endpit;
PitPosPair ppp;