]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetIndex.cpp
The way this was done here is inconsistent with how it is done
[features.git] / src / insets / InsetIndex.cpp
index fae26cad1d6f7a36af90868027c138df47dff010..d485a11969db24232f9d78b35de7550c0075592e 100644 (file)
@@ -356,7 +356,8 @@ void InsetIndex::addToToc(DocIterator const & cpit, bool output_active) const
        string type = "index";
        if (buffer().masterBuffer()->params().use_indices)
                type += ":" + to_utf8(params_.index);
-       text().forOutliner(str, 0);
+       // this is unlikely to be terribly long
+       text().forOutliner(str, INT_MAX);
        buffer().tocBackend().toc(type).push_back(TocItem(pit, 0, str, output_active));
        // Proceed with the rest of the inset.
        InsetCollapsable::addToToc(cpit, output_active);