]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Add support for todonotes package
[lyx.git] / src / Cursor.cpp
index 61e4b607ee9b56c9798d92e9f30102e7b968ba6d..fe03a31095b83b840d79c3560e768ebbdf0ea84b 100644 (file)
@@ -2090,7 +2090,7 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded)
 
                Row const & real_next_row = tm.parMetrics(pit()).rows()[next_row];
                bool bound = false;
-               top().pos() = tm.getPosNearX(pit(), real_next_row, xo, bound);
+               top().pos() = tm.getPosNearX(real_next_row, xo, bound);
                boundary(bound);
 
                updateNeeded |= bv().checkDepm(*this, old);