]> 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 02537c05f60353e75903f4de61e51b2bca2ea906..3eea5ddefb2032cce8f7cb38b608ce58620b3417 100644 (file)
@@ -277,7 +277,7 @@ 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);