]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mboxinset.C
Remove mixed_content from output parameters.
[lyx.git] / src / mathed / math_mboxinset.C
index 083860cfa35e290f81d28b4cd3d3e523127a97ab..c3f090db000e8d73283536517af0225100c483c9 100644 (file)
@@ -17,6 +17,7 @@
 #include "BufferView.h"
 #include "buffer.h"
 #include "bufferparams.h"
+#include "cursor.h"
 #include "debug.h"
 #include "metricsinfo.h"
 #include "output_latex.h"
@@ -101,8 +102,8 @@ LyXText * MathMBoxInset::getText(int) const
 }
 
 
-void MathMBoxInset::getCursorPos(CursorSlice const & cur, int & x, int & y) const
+void MathMBoxInset::getCursorPos(LCursor const & cur, int & x, int & y) const
 {
-       x = text_.cursorX(cur);
-       y = text_.cursorY(cur);
+       x = text_.cursorX(cur.top());
+       y = text_.cursorY(cur.top());
 }