2005-02-05 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/music-sequence.cc (simultaneous_relative_callback): do
+ what-if analysis on copy, not on original. Fixes old-relative
+ compatibility.
+
* scm/backend-library.scm (postscript->png): space before
--verbose.
Music *me = unsmob_music (music);
Pitch p = *unsmob_pitch (pitch);
- SCM elts = me->get_property ("elements");
+ SCM elts = me->get_property ("elements");
+ SCM copied = SCM_EOL;
+ if (lily_1_8_relative)
+ copied = ly_music_deep_copy (elts);
Pitch retval = music_list_to_relative (elts, p, false);
+
if (lily_1_8_relative)
{
- Pitch retval_1_8 = music_list_to_relative (elts, p, true);
+
+ Pitch retval_1_8 = music_list_to_relative (copied, p, true);
if (retval_1_8 != retval)
lily_1_8_compatibility_used = true;