Small bugfix for CutAndPaste segfault

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@701 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2000-04-27 09:05:04 +00:00
parent 4e96db7156
commit 4370ed4fd8
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2000-04-27 Juergen Vigna <jug@sad.it>
* src/CutAndPaste.C (pasteSelection): last paragraph was not returned
correctly only last pos this was a bug.
2000-04-26 Lars Gullik Bjønnes <larsbj@lyx.org>
* release of lyx-1.1.5pre1

View File

@ -325,8 +325,8 @@ bool CutAndPaste::pasteSelection(LyXParagraph ** par, LyXParagraph ** endpar,
(*par)->ParFromPos(pos)->PasteParagraph();
// store the new cursor position
tmppar = lastbuffer;
tmppos = lastbuffer->Last();
*par = lastbuffer;
pos = lastbuffer->Last();
// maybe some pasting
if (lastbuffer->Next() && paste_the_end) {
@ -343,7 +343,6 @@ bool CutAndPaste::pasteSelection(LyXParagraph ** par, LyXParagraph ** endpar,
}
// restore the simple cut buffer
buf = simple_cut_clone;
pos = tmppos;
}
return true;