fix #275691 The last measure of score can't be selected in Continous View

This commit is contained in:
ws 2018-08-29 10:53:43 +02:00
parent e8722b6ed8
commit 5fbc381a6f
2 changed files with 3 additions and 3 deletions

View file

@ -155,7 +155,6 @@ void LayoutContext::layoutLinear()
pos.rx() += ww;
}
system->setWidth(pos.x());
page->setWidth(system->width());
score->hideEmptyStaves(system, true);
@ -415,7 +414,7 @@ void LayoutContext::layoutLinear()
}
page->setPos(0, 0);
system->setPos(page->lm(), page->tm() + score->styleP(Sid::staffUpperBorder));
page->setWidth(system->width());
page->setWidth(system->width() + system->pos().x());
page->rebuildBspTree();
}

View file

@ -866,7 +866,8 @@ void Score::appendPart(Part* p)
Page* Score::searchPage(const QPointF& p) const
{
for (Page* page : pages()) {
if (page->bbox().translated(page->pos()).contains(p))
QRectF r = page->bbox().translated(page->pos());
if (r.contains(p))
return page;
}
return 0;