]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathRow.h
Preserve \inputencoding value when switching to non-TeX fonts.
[lyx.git] / src / mathed / MathRow.h
index de63ec965ff7a4442191cd044e28be11a07edce4..e009b90d567979385a082a0caddda7367402bd98 100644 (file)
@@ -86,7 +86,7 @@ public:
        };
 
        ///
-       MathRow() {};
+       MathRow(int asc = 0, int des = 0) : caret_ascent(asc), caret_descent(des) {};
        ///
        typedef std::vector<Element> Elements;
        ///
@@ -118,6 +118,10 @@ public:
        /// superscript kerning
        int kerning(BufferView const *) const;
 
+       /// useful when the caret visits this cell
+       int caret_ascent, caret_descent;
+
+
 private:
        // Index of the first inset element before position i
        int before(int i) const;