From: Juergen Spitzmueller Date: Fri, 4 Nov 2022 06:57:56 +0000 (+0100) Subject: Fix page range without page format X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=d41e0c9231f6ef98e2308f6a267b6fb4e50c6fb3;p=features.git Fix page range without page format --- diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp index 5458c838bb..c7a95f3f44 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 << '}';