mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
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:
parent
ff4b3ba8fc
commit
2b4690b82d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user