X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_mboxinset.C;h=c3f090db000e8d73283536517af0225100c483c9;hb=1ecc7b79cdf95de50f2683fb7a8f983b5dcdf0d2;hp=083860cfa35e290f81d28b4cd3d3e523127a97ab;hpb=2bdaf96dfbcb95931a21ca7377f3dc24e3f5ea8d;p=lyx.git diff --git a/src/mathed/math_mboxinset.C b/src/mathed/math_mboxinset.C index 083860cfa3..c3f090db00 100644 --- a/src/mathed/math_mboxinset.C +++ b/src/mathed/math_mboxinset.C @@ -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()); }