diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index afc6bbc179..6d4a1970fc 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -639,9 +639,9 @@ bool MathCursor::down(bool sel) bool MathCursor::toggleLimits() { - if (!hasPrevAtom()) + if (!hasNextAtom()) return false; - MathScriptInset * t = prevAtom()->asScriptInset(); + MathScriptInset * t = nextAtom()->asScriptInset(); if (!t) return false; int old = t->limits();