mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
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:
parent
4e96db7156
commit
4370ed4fd8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user