]> git.lyx.org Git - features.git/commitdiff
bug 2163: mouse release does not properly reset cur.selection()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 19 Dec 2005 11:47:13 +0000 (11:47 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 19 Dec 2005 11:47:13 +0000 (11:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10671 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.C
src/ChangeLog

index 0386b2d0730984d9c0064ec55572afa6a8f64664..75544d062319dc9cb6f3d831b609f71f90ae4f23 100644 (file)
@@ -345,7 +345,7 @@ void BufferView::mouseSetCursor(LCursor & cur)
                cursor().text()->deleteEmptyParagraphMechanism(cur, cursor());
 
        cursor() = cur;
-       cursor().resetAnchor();
+       cursor().clearSelection();
        cursor().setTargetX();
        finishUndo();
 
index 519672102c9df67e317213de4781ae8264cb3a01..16c1189f8368443c2b700ce1e16597cc37201401 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-16  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * BufferView.C (mouseSetCursor): clear the selection properly (bug
+       2163). 
+
 2005-12-08  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * text.C (redoParagraph): honor inset->noFontChange()