fix #30571: crash on drum note entry
This commit is contained in:
parent
2670860b3a
commit
f53f15d76a
1 changed files with 4 additions and 1 deletions
|
@ -1882,7 +1882,10 @@ void Note::setSmall(bool val)
|
|||
void Note::setLine(int n)
|
||||
{
|
||||
_line = n;
|
||||
rypos() = (_line + staff()->staffType()->stepOffset()) * spatium() * .5;
|
||||
int off = 0;
|
||||
if (staff())
|
||||
off = staff()->staffType()->stepOffset();
|
||||
rypos() = (_line + off) * spatium() * .5;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue