]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
Fix quotation marks in PDF TOC
[lyx.git] / src / insets / InsetBranch.cpp
index ecce3796ce54a8350cba10a705103b1bcc2ced42..ad7cbc5cdc21fb6f83efc517a2be06a1842790b8 100644 (file)
@@ -194,7 +194,7 @@ void InsetBranch::doDispatch(Cursor & cur, FuncRequest & cmd)
                // if branch exists in a descendant, update previews.
                // TODO: only needed if "Show preview" is enabled in the included inset.
                bool exists_in_desc = false;
-               for (auto const & it : buf->getDescendents()) {
+               for (auto const & it : buf->getDescendants()) {
                        if (it->params().branchlist().find(params_.branch))
                                exists_in_desc = true;
                }
@@ -402,10 +402,10 @@ void InsetBranch::string2params(string const & in, InsetBranchParams & params)
 }
 
 
-void InsetBranch::updateBuffer(ParIterator const & it, UpdateType utype)
+void InsetBranch::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
 {
        setLabel(params_.branch + (params_.inverted ? " (-)" : ""));
-       InsetCollapsible::updateBuffer(it, utype);
+       InsetCollapsible::updateBuffer(it, utype, deleted);
 }