]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Move OS specific code to proper place. Also make sure that no other
[lyx.git] / src / DocIterator.cpp
index 63e9e7be9968518096507a343eee3dd4e6d68c6e..ec1f6b89cd1fcd2bf3788797221005732935f320 100644 (file)
@@ -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();
 }