[LyX/master] Fix page range without page format
Juergen Spitzmueller
spitz at lyx.org
Fri Nov 4 06:05:12 UTC 2022
commit d41e0c9231f6ef98e2308f6a267b6fb4e50c6fb3
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Nov 4 07:57:56 2022 +0100
Fix page range without page format
---
src/insets/InsetIndex.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 5458c83..c7a95f3 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -169,6 +169,9 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
os << "|";
os << insetindexpagerangetranslator_latex().find(params_.range);
os << from_utf8(params_.pagefmt);
+ } else if (params_.range != InsetIndexParams::PageRange::None) {
+ os << "|";
+ os << insetindexpagerangetranslator_latex().find(params_.range);
}
} else {
// We check whether we need a sort key.
@@ -267,6 +270,9 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
os << "|"
<< insetindexpagerangetranslator_latex().find(params_.range)
<< cmd;
+ } else if (params_.range != InsetIndexParams::PageRange::None) {
+ os << "|";
+ os << insetindexpagerangetranslator_latex().find(params_.range);
}
}
os << '}';
More information about the lyx-cvs
mailing list