]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetBranch.cpp
index d8b2fd7cbc76aadd6e19441f7829da2f3b01c606..3eea5ddefb2032cce8f7cb38b608ce58620b3417 100644 (file)
@@ -277,8 +277,10 @@ void InsetBranch::addToToc(DocIterator const & cpit)
        pit.push_back(CursorSlice(*this));
 
        Toc & toc = buffer().tocBackend().toc("branch");
-       docstring const str = params_.branch + ": " + text_.getPar(0).asString();
+       docstring const str = params_.branch + ": " + text().getPar(0).asString();
        toc.push_back(TocItem(pit, 0, str));
+       // Proceed with the rest of the inset.
+       InsetCollapsable::addToToc(cpit);
 }