]> git.lyx.org Git - features.git/blobdiff - src/insets/insetcollapsable.C
*duck*
[features.git] / src / insets / insetcollapsable.C
index 00b3e869ec6c3ce989ecb5b63d41ecf05bcfa110..b66e5e5e447cbffa910847631dcf8c089b0ac753 100644 (file)
@@ -392,9 +392,9 @@ int InsetCollapsable::linuxdoc(Buffer const * buf, ostream & os) const
 }
 
 
-int InsetCollapsable::docbook(Buffer const * buf, ostream & os) const
+int InsetCollapsable::docbook(Buffer const * buf, ostream & os, bool mixcont) const
 {
-       return inset.docbook(buf, os);
+       return inset.docbook(buf, os, mixcont);
 }
 
 #if 0
@@ -649,7 +649,8 @@ bool InsetCollapsable::searchForward(BufferView * bv, string const & str,
        bool found = inset.searchForward(bv, str, cs, mw);
        if (first_after_edit && !found)
                close(bv);
-       first_after_edit = false;
+       else if (!found)
+               first_after_edit = false;
        return found;
 }
 
@@ -660,7 +661,8 @@ bool InsetCollapsable::searchBackward(BufferView * bv, string const & str,
        bool found = inset.searchBackward(bv, str, cs, mw);
        if (first_after_edit && !found)
                close(bv);
-       first_after_edit = false;
+       else if (!found)
+               first_after_edit = false;
        return found;
 }