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:
Abdelrazak Younes 2006-07-10 17:14:44 +00:00
parent a1b60fb963
commit 5a22c45cc5

View File

@ -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();