fix #91536: crash adding figured bass to palette

This commit is contained in:
Marc Sabatella 2015-12-23 10:44:02 -05:00
parent 600306e1ec
commit d5351f7ebc

View file

@ -1111,7 +1111,7 @@ void FiguredBass::layout()
void FiguredBass::layoutLines()
{
if(_ticks <= 0) {
if(_ticks <= 0 || segment() == nullptr) {
NoLen:
_lineLenghts.resize(1); // be sure to always have
_lineLenghts[0] = 0; // at least 1 item in array