v...@lyx.org schreef:
Author: vfr
Date: Mon Nov 16 00:53:40 2009
New Revision: 32036
URL: http://www.lyx.org/trac/changeset/32036
Log:
Allow PgUp and PgDwn to put the cursor on the first or last row.
Modified:
lyx-devel/trunk/src/TextMetrics.cpp
Modified: lyx-devel/trunk/src/TextMetrics.cpp
==============================================================================
--- lyx-devel/trunk/src/TextMetrics.cpp Mon Nov 16 00:45:39 2009 (r32035)
+++ lyx-devel/trunk/src/TextMetrics.cpp Mon Nov 16 00:53:40 2009 (r32036)
@@ -1445,8 +1445,8 @@
if (yy + rit->height() > y)
break;
- if (assert_in_view && yy + rit->height() != y) {
- if (!up) {
+ if (assert_in_view) {
+ if (!up && yy + rit->height() > y) {
if (rit != pm.rows().begin()) {
y = yy;
--rit;
@@ -1458,7 +1458,7 @@
--rit;
y = yy;
}
- } else {
+ } else if (up && yy != y) {
if (rit != rlast) {
y = yy + rit->height();
++rit;
Juergen,
to branch ?
Vincent