]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mboxinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_mboxinset.C
index 9fcce755dd7600eb3cc90ba8ff3d21ef5365e2d8..bd3c93b54c21554986b5b7ef089e282034cc6282 100644 (file)
@@ -102,10 +102,11 @@ LyXText * MathMBoxInset::getText(int) const
 }
 
 
-void MathMBoxInset::getCursorPos(CursorSlice const & sl, int & x, int & y) const
+void MathMBoxInset::cursorPos
+       (CursorSlice const & sl, bool boundary, int & x, int & y) const
 {
-       x = text_.cursorX(sl);
-       y = text_.cursorY(sl);
+       x = text_.cursorX(sl, boundary);
+       y = text_.cursorY(sl, boundary);
 }