mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
* insetcollapsable.C (doDispatch): do nothing on mouse release if
there is a selection. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16337 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
30f8a6327f
commit
6853846d98
@ -356,9 +356,10 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
}
|
||||
|
||||
if (cmd.button() == mouse_button::button1 && hitButton(cmd)) {
|
||||
// Left button is clicked, the user asks to toggle the inset
|
||||
// visual state.
|
||||
if (cmd.button() == mouse_button::button1 && hitButton(cmd)
|
||||
&& !cur.selection()) {
|
||||
// Left button is clicked, the user asks to
|
||||
// toggle the inset visual state.
|
||||
cur.dispatched();
|
||||
cur.updateFlags(Update::Force | Update::FitCursor);
|
||||
if (status() == Collapsed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user