]> git.lyx.org Git - features.git/commitdiff
Do not \protect stuff in index when we postpone the index
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 4 Nov 2022 07:32:34 +0000 (08:32 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 4 Nov 2022 07:32:34 +0000 (08:32 +0100)
\protect us not needed here and affects sorting

src/insets/InsetIndex.cpp

index c7a95f3f44e6b145425ba149ec92c06ea22c23a2..d863ed2366d3d5cf05d36bb9dc5b2d5bebae52ae 100644 (file)
@@ -132,6 +132,9 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
 {
        OutputParams runparams(runparams_in);
        runparams.inIndexEntry = true;
+       if (runparams_in.postpone_fragile_stuff)
+               // This is not needed and would impact sorting
+               runparams.moving_arg = false;
 
        otexstringstream os;