This commit is contained in:
Thibaut Cuvelier 2023-01-08 22:51:01 +01:00
parent 2d56c01dcf
commit 24cda9e94a

View File

@ -1855,7 +1855,8 @@ docstring InsetPrintIndex::xhtml(XMLStream &, OutputParams const & op) const
// Collect the index entries in a form we can use them.
vector<IndexEntry> entries;
const docstring & indexType = params().getParamOr("type", from_ascii("idx"));
const docstring defaultIndexType = from_ascii("idx");
const docstring & indexType = params().getParamOr("type", defaultIndexType);
for (const TocItem& item : *toc) {
const auto* inset = static_cast<const InsetIndex*>(&(item.dit().inset()));
if (item.isOutput() && inset && inset->params().index == indexType)