mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
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:
parent
5a22c45cc5
commit
3f81ae62ab
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user