Fix bug 2516

* CutAndPaste.C
	(eraseSelectionHelper): merge (conditionally) only first and last
	paragraph of selection



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2006-05-19 16:23:49 +00:00
parent ff4b3ba8fc
commit 2b4690b82d

View File

@ -305,7 +305,7 @@ PitPosPair eraseSelectionHelper(BufferParams const & params,
pars[pit].erase(left, right);
// Separate handling of para break:
if (merge && pit != endpit &&
pars[pit].hasSameLayout(pars[pit + 1])) {
(pit + 1 != endpit || pars[pit].hasSameLayout(pars[pit + 1]))) {
pos_type const thissize = pars[pit].size();
if (doclear)
pars[pit + 1].stripLeadingSpaces();