if (lily_1_8_relative)
{
lily_1_8_compatibility_used = true;
- /*
- ugh: last-pitch should be junked.
+ /* last-pitch should be junked some time, when
+ we ditch 1.8 compat too.
- Change this for lilypond 2.0. When you do,
- then B should start where A left off.
+ When you do, B should start where A left off.
- \relative { A \relative { ...} B }
-
- */
- return * unsmob_pitch (get_property ("last-pitch"));
+ \relative { A \relative { ...} B } */
+ Pitch *ptr = unsmob_pitch (get_property ("last-pitch"));
+ return (ptr) ? *ptr : p;
}
else
return p;