From 5a22c45cc52f4cd67a58965f962fa3bff7361ac3 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 10 Jul 2006 17:14:44 +0000 Subject: [PATCH] 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 --- src/BufferView_pimpl.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.2