]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
Fix bug #6280: Wrong context menu is opened in an auto-opened inset.
[features.git] / src / BufferView.cpp
index 82399c77b74ac6b176b9378dfa835e846493a44e..70ce4b8ce5738897b7a0e8c4fa2dc59b7ea52e62 100644 (file)
@@ -1950,7 +1950,7 @@ Inset const * BufferView::getCoveringInset(Text const & text,
        if (!inset)
                return 0;
 
-       if (!inset->descendable())
+       if (!inset->descendable(*this))
                // No need to go further down if the inset is not
                // descendable.
                return inset;