when mouse is pressed on the inset button (bug 3060).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16501
a592a061-630c-0410-9148-
cb99ea01b6c8
switch (cmd.action) {
case LFUN_MOUSE_PRESS:
if (cmd.button() == mouse_button::button1 && hitButton(cmd)) {
switch (cmd.action) {
case LFUN_MOUSE_PRESS:
if (cmd.button() == mouse_button::button1 && hitButton(cmd)) {
+ // reset selection if necessary (see bug 3060)
+ if (cur.selection())
+ cur.bv().cursor().clearSelection();
+ else
+ cur.noUpdate();
break;
}
if (status() == Inlined)
break;
}
if (status() == Inlined)