mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
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:
parent
690a630c5e
commit
8b9a33b656
@ -1034,7 +1034,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
// finish selection
|
// finish selection
|
||||||
if (cmd.button() == mouse_button::button1) {
|
if (cmd.button() == mouse_button::button1) {
|
||||||
if (cur.selection())
|
if (cur.selection())
|
||||||
theSelection().haveSelection(cur.selection());
|
theSelection().haveSelection(true);
|
||||||
needsUpdate = false;
|
needsUpdate = false;
|
||||||
cur.noUpdate();
|
cur.noUpdate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user