]> git.lyx.org Git - features.git/commitdiff
Fix regression concerning collapsing insets after search.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 15 Mar 2019 00:28:01 +0000 (20:28 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 15 Mar 2019 01:34:50 +0000 (21:34 -0400)
To reproduce: Do a search for text in a footnote (say) that is
currently closed. Click inside the now open footnote. It will close
by itself.

We need to know whether we can go into the inset, not whether we can
edit once we're there.

(cherry picked from commit 4484cc775126e969d83f036561cfeb21d6751e79)

src/insets/InsetCollapsible.cpp
status.23x

index c20e9ce9881fcb0c7c419149d9fdd299d921459a..6c60e0b68e7a177f4ada985cb11f959ef48b1d7d 100644 (file)
@@ -453,7 +453,7 @@ Inset * InsetCollapsible::editXY(Cursor & cur, int x, int y)
 {
        //lyxerr << "InsetCollapsible: edit xy" << endl;
        if (geometry(cur.bv()) == ButtonOnly
-           || !editable()
+               || !descendable(cur.bv())
            || (view_[&cur.bv()].button_dim_.contains(x, y)
                && geometry(cur.bv()) != NoButton))
                return this;
index 0d2e1370803e3142b78dd083d5e97ed4753d96b7..3030704bd5658e0ad9a8006bf225251e725d436c 100644 (file)
@@ -108,6 +108,8 @@ What's new
 - Fix on-screen display of macros whose name is a single non-letter symbol
   (part of bug 11158).
 
+- Fix problem with collapsing insets after searches.
+
 - Do not swallow backspaces in custom viewer/editor paths (bug 9622).
 
 - Fix broken space dialog in mathed (bug 7747).