From: Thibaut Cuvelier Date: Sun, 8 Jan 2023 21:51:01 +0000 (+0100) Subject: Amend 2d56c01dcfaf04744ab6d854af3965919cc07b82 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=24cda9e94a4b7306fe8852f3e94200ba617d2452;p=features.git Amend 2d56c01dcfaf04744ab6d854af3965919cc07b82 --- diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp index 7db133aa61..f494b07695 100644 --- a/src/insets/InsetIndex.cpp +++ b/src/insets/InsetIndex.cpp @@ -1855,7 +1855,8 @@ docstring InsetPrintIndex::xhtml(XMLStream &, OutputParams const & op) const // Collect the index entries in a form we can use them. vector 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(&(item.dit().inset())); if (item.isOutput() && inset && inset->params().index == indexType)