Don't query cur.selection() twice

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16528 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-05 13:23:43 +00:00
parent 690a630c5e
commit 8b9a33b656

View 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();
}