fix ui bug 550

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6639 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-29 17:57:25 +00:00
parent a6737cd9b9
commit 349c3ab36b
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-03-29 John Levon <levon@movementarian.org>
* text2.C: do not clear selection after inc/decDepth
(bug 550)
2003-03-29 John Levon <levon@movementarian.org> 2003-03-29 John Levon <levon@movementarian.org>
* BufferView.C: * BufferView.C:

View File

@ -528,13 +528,12 @@ void LyXText::incDepth()
redoParagraphs(selection.start, endpar); redoParagraphs(selection.start, endpar);
// we have to reset the selection, because the // we have to reset visual the selection because the
// geometry could have changed // geometry could have changed
setCursor(selection.start.par(), selection.start.pos()); setCursor(selection.start.par(), selection.start.pos());
selection.cursor = cursor; selection.cursor = cursor;
setCursor(selection.end.par(), selection.end.pos()); setCursor(selection.end.par(), selection.end.pos());
updateCounters(); updateCounters();
clearSelection();
setSelection(); setSelection();
setCursor(tmpcursor.par(), tmpcursor.pos()); setCursor(tmpcursor.par(), tmpcursor.pos());
} }
@ -584,14 +583,12 @@ void LyXText::decDepth()
redoParagraphs(selection.start, endpar); redoParagraphs(selection.start, endpar);
// we have to reset the selection, because the // we have to reset the visual selection because the
// geometry could have changed // geometry could have changed
setCursor(selection.start.par(), setCursor(selection.start.par(), selection.start.pos());
selection.start.pos());
selection.cursor = cursor; selection.cursor = cursor;
setCursor(selection.end.par(), selection.end.pos()); setCursor(selection.end.par(), selection.end.pos());
updateCounters(); updateCounters();
clearSelection();
setSelection(); setSelection();
setCursor(tmpcursor.par(), tmpcursor.pos()); setCursor(tmpcursor.par(), tmpcursor.pos());
} }