]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Compute and output numbers for numerical citations.
[lyx.git] / src / insets / InsetCaption.cpp
index 4c7cd74e4e6940fd7461ac929637c893b47fcaa4..a239fb9061486e18b6f2fe32c165a95e5602e375 100644 (file)
@@ -107,7 +107,8 @@ void InsetCaption::addToToc(DocIterator const & cpit, bool output_active) const
 
        Toc & toc = buffer().tocBackend().toc(floattype_);
        docstring str = full_label_;
-       text().forToc(str, TOC_ENTRY_LENGTH);
+       int length = output_active ? INT_MAX : TOC_ENTRY_LENGTH;
+       text().forToc(str, length);
        toc.push_back(TocItem(pit, 0, str, output_active));
 
        // Proceed with the rest of the inset.