fix #275691 The last measure of score can't be selected in Continous View
This commit is contained in:
parent
e8722b6ed8
commit
5fbc381a6f
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue