]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.C
* support/os_unix.C (canAutoOpen, autoOpenFile): on Mac OS X, use
[lyx.git] / src / insets / insetcollapsable.C
index 98788b49e1b75822afc45d1f96e70473e4986303..75b9c195a1de21e9d9e0daef409eea032026bcc3 100644 (file)
@@ -321,8 +321,12 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & 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();
                        cur.dispatched();
-                       cur.noUpdate();
                        break;
                }
                if (status() == Inlined)