fix #24412
This commit is contained in:
parent
fbe6fc5efa
commit
51d8cbdcd3
1 changed files with 15 additions and 10 deletions
|
@ -331,6 +331,7 @@ void Beam::layout1()
|
|||
_up = _direction == MScore::UP;
|
||||
}
|
||||
else {
|
||||
if (c1) {
|
||||
Measure* m = c1->measure();
|
||||
if (m->hasVoices(c1->staffIdx()))
|
||||
_up = !(c1->voice() % 2);
|
||||
|
@ -342,6 +343,9 @@ void Beam::layout1()
|
|||
_up = mUp < mDown;
|
||||
}
|
||||
}
|
||||
else
|
||||
_up = true;
|
||||
}
|
||||
|
||||
cross = minMove < maxMove;
|
||||
// int idx = (_direction == MScore::AUTO || _direction == MScore::DOWN) ? 0 : 1;
|
||||
|
@ -1023,7 +1027,8 @@ static int adjust(qreal _spatium4, int slant, const QList<ChordRest*>& cl)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(c1 && c2))
|
||||
return 0;
|
||||
QPointF p1(c1->stemPosBeam()); // canvas coordinates
|
||||
qreal slope = (slant * _spatium4) / (c2->stemPosBeam().x() - p1.x());
|
||||
int ml = -1000;
|
||||
|
|
Loading…
Reference in a new issue