Changing "space" in Layout -> Page Settings causes crash in r3783 when lyrics present - fix attached

• Dec 20, 2010 - 22:29
Type
Functional
Severity
S4 - Minor
Status
closed
Project

I have a file with lyrics, when I tried to change the space setting in the page settings, the programm crashed.

in Segment::lyricsList() there is this section (segment.cpp line 640)

if (!(subtype() & (SegChordRest | SegGrace))) {
printf(" bad segment type <%s><%s>\n", name(), subTypeName());
abort();
// return 0;
}

It looks like the abort has been added for a particular reason.
I commented out the abort() call and uncommented the return 0, everything seems to work fine now.

A diff is attached below.

best regards,
Friedemann

Attachment Size
segment.cpp_.diff_.txt 496 bytes

Comments