mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
cf7084771c
commit
c0725c5beb
@ -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.");
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user