* 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:
Michael Schmitt 2006-10-23 20:08:18 +00:00
parent 706f828230
commit 048122515d

View File

@ -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);
}