]> git.lyx.org Git - features.git/blobdiff - src/Cursor.cpp
Change getColumnNearX to getPosNearX
[features.git] / src / Cursor.cpp
index 7dff9328b42f17ab17282a0acc5b7463e60e8eb1..61e4b607ee9b56c9798d92e9f30102e7b968ba6d 100644 (file)
@@ -2090,9 +2090,7 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded)
 
                Row const & real_next_row = tm.parMetrics(pit()).rows()[next_row];
                bool bound = false;
-               pos_type const col = tm.getColumnNearX(pit(), real_next_row, 
-                                                      xo, bound);
-               top().pos() = real_next_row.pos() + col;
+               top().pos() = tm.getPosNearX(pit(), real_next_row, xo, bound);
                boundary(bound);
 
                updateNeeded |= bv().checkDepm(*this, old);