mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
* CutAndPaste.C: fix change tracking in case of
deletion of a selection git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15519 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
706f828230
commit
048122515d
@ -307,9 +307,8 @@ PitPosPair eraseSelectionHelper(BufferParams const & params,
|
||||
return PitPosPair(endpit, endpos);
|
||||
|
||||
// Start and end is inside same paragraph
|
||||
if (endpit == pit_type(pars.size()) ||
|
||||
startpit == endpit) {
|
||||
endpos -= pars[startpit].eraseChars(startpos, endpos, false);
|
||||
if (endpit == pit_type(pars.size()) || startpit == endpit) {
|
||||
endpos -= pars[startpit].eraseChars(startpos, endpos, params.trackChanges);
|
||||
return PitPosPair(endpit, endpos);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user