[LyX/master] Amend 2d56c01dcfaf04744ab6d854af3965919cc07b82

Thibaut Cuvelier tcuvelier at lyx.org
Sun Jan 8 20:52:48 UTC 2023


commit 24cda9e94a4b7306fe8852f3e94200ba617d2452
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sun Jan 8 22:51:01 2023 +0100

    Amend 2d56c01dcfaf04744ab6d854af3965919cc07b82
---
 src/insets/InsetIndex.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 7db133a..f494b07 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<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)


More information about the lyx-cvs mailing list