branch: Fix bug #6327: Crash in new file and press PgUp button.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32102 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-19 22:28:51 +00:00
parent 260e565555
commit 5e0d1703c6
2 changed files with 3 additions and 1 deletions

View File

@ -1458,7 +1458,7 @@ Row const & TextMetrics::getPitAndRowNearY(int & y, pit_type & pit,
if (rit != rlast) {
y = yy + rit->height();
++rit;
} else if (pit != int(par_metrics_.size())) {
} else if (pit < int(par_metrics_.size()) - 1) {
++pit;
newParMetricsDown();
ParagraphMetrics const & pm2 = par_metrics_[pit];

View File

@ -212,6 +212,8 @@ What's new
- Fix an infinite loop when selecting multiple displayed equation right
after each other with LFUN_SCREEN_UP (bug 6237).
- Fix a crash when pressing PageUp in an empty document (bug 6327).
- Fix a number of assertions when displaying error messages (bug 6205).
- Fix bad allocation exception when displaying long tooltips (bug 6215).