Merge pull request #4777 from dmitrio95/beam-layout2-chord-conversion
Fix assertion failure due to ChordRest conversion in Beam::layout2
This commit is contained in:
commit
18fb31a20e
1 changed files with 2 additions and 2 deletions
|
@ -1589,12 +1589,12 @@ void Beam::layout2(std::vector<ChordRest*>crl, SpannerSegmentType, int frag)
|
|||
qreal y1 = -200000;
|
||||
qreal y2 = 200000;
|
||||
for (size_t i = 0; i < n; ++i) {
|
||||
Chord* c = toChord(crl.at(i));
|
||||
const ChordRest* c = crl.at(i);
|
||||
qreal y;
|
||||
if (c->isRest())
|
||||
continue; //y = c->pagePos().y();
|
||||
else
|
||||
y = c->upNote()->pagePos().y();
|
||||
y = toChord(c)->upNote()->pagePos().y();
|
||||
y1 = qMax(y1, y);
|
||||
y2 = qMin(y2, y);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue