mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
f93fef11b0
commit
cb2538a52e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user