Hopefully fixed the reported memory bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@762 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2000-05-22 11:08:25 +00:00
parent 40fe3a66a2
commit e33924c4eb
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2000-05-22 Juergen Vigna <jug@sad.it>
* src/CutAndPaste.C: hopefully fixed memory the problem defenitively!
* src/tabular.C (OldFormatRead): added \end_deeper to the end LyXTable
end markers!

View File

@ -125,8 +125,10 @@ bool CutAndPaste::cutSelection(LyXParagraph * startpar, LyXParagraph ** endpar,
if (doclear)
startpar->Next()->ClearParagraph();
if (startpar->FirstPhysicalPar()->HasSameLayout(startpar->Next()) ||
!startpar->Next()->Last())
!startpar->Next()->Last()) {
startpar->ParFromPos(start)->PasteParagraph();
(*endpar) = startpar; // this because endpar gets deleted here!
}
}
return true;
}