From: John Levon Date: Sat, 29 Mar 2003 17:57:25 +0000 (+0000) Subject: fix ui bug 550 X-Git-Tag: 1.6.10~17118 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=349c3ab36b196d14eaf145974dc5e34ffda86c39;p=features.git fix ui bug 550 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6639 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 735265bd5d..80536e5349 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-03-29 John Levon + + * text2.C: do not clear selection after inc/decDepth + (bug 550) + 2003-03-29 John Levon * BufferView.C: diff --git a/src/text2.C b/src/text2.C index ccc7b30bc1..9774dce7a3 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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()); }