fix #30571: crash on drum note entry

This commit is contained in:
Marc Sabatella 2014-08-23 09:39:59 -06:00
parent 2670860b3a
commit f53f15d76a

View file

@ -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;
}
//---------------------------------------------------------