]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.C
Applied Edwins patch, fixes to free memory read in insettext, partial fix
[features.git] / src / lyxfind.C
index 4b9a48cdaf6fdfeab46b32c3e5f16a6f22d2ab9a..128949e3ecbc6d12c7d5fbb65a37805f42bc5adb 100644 (file)
@@ -236,6 +236,7 @@ SearchResult SearchForward(BufferView * bv, LyXText * text, string const & str,
        if (par) {
                text->setCursor(bv, par, pos);
                return SR_FOUND;
+#if 0
        } else if (text->inset_owner) {
                // test if we're inside an inset if yes unlock the inset
                // and recall us with the outside LyXText!
@@ -257,6 +258,7 @@ SearchResult SearchForward(BufferView * bv, LyXText * text, string const & str,
                } else {
                        return SR_NOT_FOUND;
                }
+#endif
        } else
                return SR_NOT_FOUND;
 }