MathClass mclass;
/// the spacing around the element
int before, after;
- /// count wether the current mathdata is nested in macro(s)
+ /// count whether the current mathdata is nested in macro(s)
int macro_nesting;
/// Marker type
InsetMath::marker_type marker;
};
///
- MathRow() {};
+ MathRow(int asc = 0, int des = 0) : caret_ascent(asc), caret_descent(des) {};
///
typedef std::vector<Element> Elements;
///
MathRow(MetricsInfo & mi, MathData const * ar);
//
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim);
//
void draw(PainterInfo & pi, int const x, int const y) const;
/// 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;