correctly position new paragraph on up and down movement.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22220 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-21 07:16:50 +00:00
parent f93fef11b0
commit cb2538a52e

View File

@ -1205,7 +1205,7 @@ void TextMetrics::newParMetricsDown()
// do it and update its position.
redoParagraph(pit);
par_metrics_[pit].setPosition(last.second.position()
+ last.second.descent());
+ last.second.descent() + par_metrics_[pit].ascent());
}
@ -1219,7 +1219,7 @@ void TextMetrics::newParMetricsUp()
// do it and update its position.
redoParagraph(pit);
par_metrics_[pit].setPosition(first.second.position()
- first.second.ascent());
- first.second.ascent() - par_metrics_[pit].descent());
}
// y is screen coordinate