Skip to content

Commit

Permalink
fix #38636: take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 10, 2014
1 parent 66010cc commit a107069
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,11 @@ void Page::doRebuildBspTree()

int n = el.size();
if (score()->layoutMode() == LayoutMode::LINE) {
qreal h = _systems.front()->height();
if (_systems.isEmpty())
return;
if (_systems.front()->measures().isEmpty())
return;
qreal h = _systems.front()->height();
MeasureBase* mb = _systems.front()->measures().back();
qreal w = mb->x() + mb->width();
bspTree.initialize(QRectF(0.0, 0.0, w, h), n);
Expand Down

0 comments on commit a107069

Please sign in to comment.