From 1bad3e5232db45ecf1c871252d3d09169d01102f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 13 Aug 2008 15:22:41 +0000 Subject: [PATCH] avoid empty selections (patch from Vincent van Ravesteijn) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26146 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index a34dde66e6..b102dc85a3 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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(); -- 2.39.2