]> git.lyx.org Git - lyx.git/commitdiff
rev 14409 committed the file from a wrong tree, here is the file.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 10 Jul 2006 17:14:44 +0000 (17:14 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 10 Jul 2006 17:14:44 +0000 (17:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14411 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C

index cb423532a311a1010b0fdb9b46ba461398a5a808..859b2f57938c0b41629c5d5129a26175ecf904b3 100644 (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();