* src/CutAndPaste.cpp (eraseSelectionHelper): when the last paragraph that

is cut is completely erased, remove it regardless of its layout (fixes
	bug 3995).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23430 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-03-04 10:14:29 +00:00
parent dcb606d0b7
commit af3b63ac40
2 changed files with 6 additions and 4 deletions

View File

@ -310,7 +310,9 @@ PitPosPair eraseSelectionHelper(BufferParams const & params,
// Separate handling of paragraph break:
if (merge && pit != endpit &&
(pit + 1 != endpit || pars[pit].hasSameLayout(pars[endpit]))) {
(pit + 1 != endpit
|| pars[pit].hasSameLayout(pars[endpit])
|| pars[endpit].size() == endpos)) {
if (pit + 1 == endpit)
endpos += pars[pit].size();
mergeParagraph(params, pars, pit);

View File

@ -38,9 +38,6 @@ What's new
* DOCUMENT INPUT/OUTPUT
- Stop warning messages when a local layout file is opened. Fix bugs caused by
incorrect reloading of local layout files.
* BUILD/INSTALLATION:
@ -61,6 +58,8 @@ What's new
- Check for PDF->PS, PDF->EPS and PS->EPS converters and use them (bug 3968).
- Stop warning messages when a local layout file is opened. Fix bugs caused by
incorrect reloading of local layout files.
* USER INTERFACE:
@ -68,6 +67,7 @@ What's new
- Fix parameter input of the math commands \makebox and \framebox (bug 2461).
- When cutting a selection do not leave a dangling paragraph (bug 3995).
* DOCUMENTATION