]> git.lyx.org Git - features.git/commitdiff
Don't query cur.selection() twice
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 5 Jan 2007 13:23:43 +0000 (13:23 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 5 Jan 2007 13:23:43 +0000 (13:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16528 a592a061-630c-0410-9148-cb99ea01b6c8

src/text3.C

index 840ec68e1caabfc67a5d8bbe4b08b4a79fd3eb1c..1fdc5b736e075f8e2c59078cbb66d1e5372403ca 100644 (file)
@@ -1034,7 +1034,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                // finish selection
                if (cmd.button() == mouse_button::button1) {
                        if (cur.selection())
-                               theSelection().haveSelection(cur.selection());
+                               theSelection().haveSelection(true);
                        needsUpdate = false;
                        cur.noUpdate();
                }