> Two saveSelection at MousePressed should fix them, right? I guess your
> better solution can be introduced later.

I mean the following patch. It does not make sense to release 1.5.1
without this simple fix. Can I apply?

Bo

Index: src/insets/InsetTabular.cpp
===================================================================
--- src/insets/InsetTabular.cpp (revision 19296)
+++ src/insets/InsetTabular.cpp (working copy)
@@ -3189,6 +3189,7 @@

        case LFUN_MOUSE_PRESS:
                //lyxerr << "# InsetTabular::MousePress\n" << cur.bv().cursor()
<< endl;
+               cap::saveSelection(bvcur);

                if (cmd.button() == mouse_button::button1
                    || (cmd.button() == mouse_button::button3
Index: src/mathed/InsetMathNest.cpp
===================================================================
--- src/mathed/InsetMathNest.cpp        (revision 19296)
+++ src/mathed/InsetMathNest.cpp        (working copy)
@@ -1153,6 +1153,7 @@
 {
        //lyxerr << "## lfunMousePress: buttons: " << cmd.button() << endl;
        BufferView & bv = cur.bv();
+       cap::saveSelection(bv.cursor());
        if (cmd.button() == mouse_button::button1) {
                //lyxerr << "## lfunMousePress: setting cursor to: "
<< cur << endl;
                bv.mouseSetCursor(cur);

Reply via email to