mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
rev 14409 committed the file from a wrong tree, here is the file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14411 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a1b60fb963
commit
5a22c45cc5
@ -677,6 +677,8 @@ void BufferView::Pimpl::update(Update::flags flags)
|
||||
bool singlePar = flags & Update::SinglePar;
|
||||
needs_redraw_ = flags & (Update::Force | Update::SinglePar);
|
||||
|
||||
updateMetrics(singlePar);
|
||||
|
||||
if ((flags & (Update::FitCursor | Update::MultiParSel))
|
||||
&& (fitCursor() || multiParSel())) {
|
||||
needs_redraw_ = true;
|
||||
@ -1413,7 +1415,7 @@ void BufferView::Pimpl::updateMetrics(bool singlepar)
|
||||
|
||||
// The coordinates of all these paragraphs are correct, cache them
|
||||
int y = y1;
|
||||
CoordCache::InnerParPosCache parPos = theCoords.parPos()[text];
|
||||
CoordCache::InnerParPosCache & parPos = theCoords.parPos()[text];
|
||||
for (lyx::pit_type pit = pit1; pit <= pit2; ++pit) {
|
||||
Paragraph & par = text->getPar(pit);
|
||||
y += par.ascent();
|
||||
|
Loading…
Reference in New Issue
Block a user