]> git.lyx.org Git - features.git/commitdiff
avoid empty selections (patch from Vincent van Ravesteijn)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 13 Aug 2008 15:22:41 +0000 (15:22 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 13 Aug 2008 15:22:41 +0000 (15:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26146 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index a34dde66e6b76d00fc33c389b092b1a0ebfc6ec6..b102dc85a3312c8de8551c2a4362c005558397b6 100644 (file)
@@ -1249,10 +1249,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        // otherwise, single click does not clear persistent selection
                        // buffer.
                        if (cur.selection()) {
-                               // Finish selection.
-                               // If double click, cur is moved to the end of word by selectWord
-                               // but bvcur is current mouse position.
-                               cur.bv().cursor().selection() = true;
+                               // Finish selection. If double click,
+                               // cur is moved to the end of word by
+                               // selectWord but bvcur is current
+                               // mouse position.
+                               cur.bv().cursor().setSelection();
                        }
                        // FIXME: We could try to handle drag and drop of selection here.
                        cur.noUpdate();