mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
a6737cd9b9
commit
349c3ab36b
@ -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:
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user