Add a const inside BufferView::Pimpl::updateMetrics(bool singlepar)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14412 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-07-10 17:30:35 +00:00
parent 5a22c45cc5
commit 3f81ae62ab

View 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()) {