]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathRow.h
Only set buffer if it is not null.
[lyx.git] / src / mathed / MathRow.h
index 6d1a410372b9582b7abeba5683d0d2253b45eedc..d985569f46242800aa97ea765012e0e355bfb471 100644 (file)
@@ -16,6 +16,7 @@
 #include "MathClass.h"
 
 #include "ColorCode.h"
+#include "Dimension.h"
 
 #include "support/docstring.h"
 
@@ -25,11 +26,10 @@ namespace lyx {
 
 class BufferView;
 class Dimension;
+class MathData;
 class MetricsInfo;
 class PainterInfo;
 
-class InsetMath;
-class MathData;
 
 /*
  * While for editing purpose it is important that macros are counted
@@ -86,7 +86,9 @@ public:
        };
 
        ///
-       MathRow(int asc = 0, int des = 0) : caret_ascent(asc), caret_descent(des) {};
+       MathRow() {}
+       ///
+       MathRow(Dimension const & dim) : caret_dim(dim) {}
        ///
        typedef std::vector<Element> Elements;
        ///
@@ -119,7 +121,7 @@ public:
        int kerning(BufferView const *) const;
 
        /// useful when the caret visits this cell
-       int caret_ascent, caret_descent;
+       Dimension caret_dim;
 
 
 private: