]> git.lyx.org Git - features.git/commitdiff
quick fix for bug: "select, select, middle-button paste" pastes the first selection
authorBo Peng <bpeng@lyx.org>
Wed, 25 Jul 2007 05:12:52 +0000 (05:12 +0000)
committerBo Peng <bpeng@lyx.org>
Wed, 25 Jul 2007 05:12:52 +0000 (05:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19199 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index ff2f7636af1f467fad6d2f8779c17076ae3c9009..5a84381b49ce296f80b0f7dc1909292c90e0b366 100644 (file)
@@ -1013,6 +1013,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
        // Single-click on work area
        case LFUN_MOUSE_PRESS: {
+               cap::saveSelection(bv->cursor());
                // Right click on a footnote flag opens float menu
                if (cmd.button() == mouse_button::button3)
                        cur.clearSelection();