]> git.lyx.org Git - features.git/commitdiff
Do not throw away runparams settings of InsetText in InsetFoot::latex
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Jul 2023 11:18:56 +0000 (13:18 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Jul 2023 11:18:56 +0000 (13:18 +0200)
This amends 243b0ef90c09d5

src/OutputParams.h
src/insets/InsetFoot.cpp

index 36c972bc84a93047ef258b7889302d7e4229c3d7..40a7a47785e01faac4a13535563c1868fdd43969 100644 (file)
@@ -293,7 +293,7 @@ public:
 
        /** Whether we are inside a footnote. 
         */
-       bool inFootnote = false;
+       mutable bool inFootnote = false;
 
        /** Whether a btUnit (for multiple biblographies) is open.
         */
index 1440310d3b72170eb35ca196f6bcaf9e96aa9dec..a0f3435bcd7f8d14c716b78fa91eeb99b12b5b0d 100644 (file)
@@ -111,11 +111,13 @@ docstring InsetFoot::toolTip(BufferView const & bv, int x, int y) const
 }
 
 
-void InsetFoot::latex(otexstream & os, OutputParams const & runparams_in) const
+void InsetFoot::latex(otexstream & os, OutputParams const & runparams) const
 {
-       OutputParams runparams(runparams_in);
+       // We need to maintain the runparams values set
+       // by InsetText::latex. hence we use no copy
        runparams.inFootnote = true;
        InsetText::latex(os, runparams);
+       runparams.inFootnote = false;
 }