]> git.lyx.org Git - features.git/commitdiff
fix ui bug 550
authorJohn Levon <levon@movementarian.org>
Sat, 29 Mar 2003 17:57:25 +0000 (17:57 +0000)
committerJohn Levon <levon@movementarian.org>
Sat, 29 Mar 2003 17:57:25 +0000 (17:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6639 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 735265bd5d516b8f5b5c9cda409c9ac39af2e224..80536e5349dee4f356b4c803e66e10f682e80bfe 100644 (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>
 
        * BufferView.C:
index ccc7b30bc15f4029617d43a9356d4aaca7941057..9774dce7a31fdd1ef55205b9d41501b0bf78c154 100644 (file)
@@ -528,13 +528,12 @@ void  LyXText::incDepth()
 
        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
        setCursor(selection.start.par(), selection.start.pos());
        selection.cursor = cursor;
        setCursor(selection.end.par(), selection.end.pos());
        updateCounters();
-       clearSelection();
        setSelection();
        setCursor(tmpcursor.par(), tmpcursor.pos());
 }
@@ -584,14 +583,12 @@ void  LyXText::decDepth()
 
        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
-       setCursor(selection.start.par(),
-                 selection.start.pos());
+       setCursor(selection.start.par(), selection.start.pos());
        selection.cursor = cursor;
        setCursor(selection.end.par(), selection.end.pos());
        updateCounters();
-       clearSelection();
        setSelection();
        setCursor(tmpcursor.par(), tmpcursor.pos());
 }