]> git.lyx.org Git - features.git/commitdiff
Add a const inside BufferView::Pimpl::updateMetrics(bool singlepar)
authorAbdelrazak Younes <younes@lyx.org>
Mon, 10 Jul 2006 17:30:35 +0000 (17:30 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 10 Jul 2006 17:30:35 +0000 (17:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14412 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C

index 859b2f57938c0b41629c5d5129a26175ecf904b3..a0b3a00f39d844cae5b3f3aab66d4b0e8221bf4b 100644 (file)
@@ -1417,7 +1417,7 @@ void BufferView::Pimpl::updateMetrics(bool singlepar)
        int y = y1;
        CoordCache::InnerParPosCache & parPos = theCoords.parPos()[text];
        for (lyx::pit_type pit = pit1; pit <= pit2; ++pit) {
-               Paragraph & par = text->getPar(pit);
+               Paragraph const & par = text->getPar(pit);
                y += par.ascent();
                parPos[pit] = Point(0, y);
                if (singlepar && pit == cursor_.bottom().pit()) {