diff --git a/src/DocIterator.cpp b/src/DocIterator.cpp index 63e9e7be99..ec1f6b89cd 100644 --- a/src/DocIterator.cpp +++ b/src/DocIterator.cpp @@ -249,12 +249,7 @@ MathData & DocIterator::cell() const Text * DocIterator::innerText() const { LASSERT(!empty(), /**/); - // go up until first non-0 text is hit - // (innermost text is 0 in mathed) - for (int i = depth() - 1; i >= 0; --i) - if (slices_[i].text()) - return slices_[i].text(); - return 0; + return innerTextSlice().text(); }