]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_oversetinset.C
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_oversetinset.C
index a9d6ee093eb37f0ee1867e3153809328dc1500c5..b16f4b2c7cf96d197b91c357c96088184d7523c0 100644 (file)
@@ -11,8 +11,9 @@
 #include <config.h>
 
 #include "math_oversetinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
-
+#include "cursor.h"
 
 using std::max;
 using std::auto_ptr;
@@ -46,18 +47,18 @@ void MathOversetInset::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-bool MathOversetInset::idxFirst(idx_type & i, pos_type & pos) const
+bool MathOversetInset::idxFirst(LCursor & cur) const
 {
-       i = 1;
-       pos = 0;
+       cur.idx() = 1;
+       cur.pos() = 0;
        return true;
 }
 
 
-bool MathOversetInset::idxLast(idx_type & i, pos_type & pos) const
+bool MathOversetInset::idxLast(LCursor & cur) const
 {
-       i = 1;
-       pos = cell(i).size();
+       cur.idx() = 1;
+       cur.pos() = cur.lastpos();
        return true;
 }