]> git.lyx.org Git - features.git/blobdiff - src/OutputParams.h
Take into account font changes when striking out display math formulas
[features.git] / src / OutputParams.h
index ccb0783a2a95a9067a7d72c331d2854df55fdb90..4534b22c6ed8ebab246e2e04615c9e9dec47c706 100644 (file)
@@ -185,6 +185,11 @@ public:
        */
        std::shared_ptr<ExportData> exportdata;
 
+       /** Whether we are inside a display math inset.
+        *  Needed to correctly strike out deleted math in change tracking.
+        */
+       mutable bool inDisplayMath;
+
        /** Whether we are inside a comment inset. Insets that are including
         *  external files like InsetGraphics, InsetInclude and InsetExternal
         *  may only write the usual output and must not attempt to do
@@ -238,7 +243,7 @@ public:
        mutable int lastid;
 
        /// Last position in the last paragraph before an inset
-       mutable int lastpos;
+       mutable pos_type lastpos;
 
        /// is this the last paragraph in the current buffer/inset?
        bool isLastPar;