]> git.lyx.org Git - features.git/commitdiff
Fix page range without page format
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 4 Nov 2022 06:57:56 +0000 (07:57 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 4 Nov 2022 06:57:56 +0000 (07:57 +0100)
src/insets/InsetIndex.cpp

index 5458c838bbbdcecdcb72dec83af4ed5640eb7fdc..c7a95f3f44e6b145425ba149ec92c06ea22c23a2 100644 (file)
@@ -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 << '}';