From: Abdelrazak Younes Date: Mon, 10 Jul 2006 17:14:44 +0000 (+0000) Subject: rev 14409 committed the file from a wrong tree, here is the file. X-Git-Tag: 1.6.10~12961 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5a22c45cc52f4cd67a58965f962fa3bff7361ac3;p=lyx.git 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 --- diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index cb423532a3..859b2f5793 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -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();