mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 09:04:48 +00:00
* insetcollapsable.C (doDispatch): fix crash in previous patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16344 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d99334d73b
commit
9c513e90d1
@ -356,8 +356,11 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd.button() == mouse_button::button1 && hitButton(cmd)
|
if (cmd.button() == mouse_button::button1 && hitButton(cmd)) {
|
||||||
&& !cur.selection()) {
|
// if we are selecting, we do not want to
|
||||||
|
// toggle the inset.
|
||||||
|
if (cur.selection())
|
||||||
|
break;
|
||||||
// Left button is clicked, the user asks to
|
// Left button is clicked, the user asks to
|
||||||
// toggle the inset visual state.
|
// toggle the inset visual state.
|
||||||
cur.dispatched();
|
cur.dispatched();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user