mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #8608: Don't output index entries from notes, etc.
This commit is contained in:
parent
ca03f8cf7b
commit
15fd8d7400
@ -689,12 +689,19 @@ docstring InsetPrintIndex::xhtml(XHTMLStream &, OutputParams const & op) const
|
|||||||
if (toc.empty())
|
if (toc.empty())
|
||||||
return docstring();
|
return docstring();
|
||||||
|
|
||||||
// Collection the index entries in a form we can use them.
|
// Collect the index entries in a form we can use them.
|
||||||
Toc::const_iterator it = toc.begin();
|
Toc::const_iterator it = toc.begin();
|
||||||
Toc::const_iterator const en = toc.end();
|
Toc::const_iterator const en = toc.end();
|
||||||
vector<IndexEntry> entries;
|
vector<IndexEntry> entries;
|
||||||
for (; it != en; ++it)
|
for (; it != en; ++it)
|
||||||
entries.push_back(IndexEntry(it->str(), it->dit()));
|
if (it->isOutput())
|
||||||
|
entries.push_back(IndexEntry(it->str(), it->dit()));
|
||||||
|
|
||||||
|
if (entries.empty())
|
||||||
|
// not very likely that all the index entries are in notes or
|
||||||
|
// whatever, but....
|
||||||
|
return docstring();
|
||||||
|
|
||||||
stable_sort(entries.begin(), entries.end());
|
stable_sort(entries.begin(), entries.end());
|
||||||
|
|
||||||
Layout const & lay = bp.documentClass().htmlTOCLayout();
|
Layout const & lay = bp.documentClass().htmlTOCLayout();
|
||||||
|
Loading…
Reference in New Issue
Block a user