]> git.donarmstrong.com Git - lilypond.git/commitdiff
(process): use find_existing_context().
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 31 Mar 2004 12:05:39 +0000 (12:05 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 31 Mar 2004 12:05:39 +0000 (12:05 +0000)
Documentation/user/preface.itely
lily/change-iterator.cc
lily/parser.yy

index 6c7019e5949ee7ab10c1050f6dcc67ec0a765d26..749231594ecdb79d7d22295fd21f60152726313e 100644 (file)
@@ -48,6 +48,10 @@ Han-Wen and Jan
 
 Utrecht/Eindhoven, The Netherlands, July 2002.
 
+@menu
+* Notes to version 2.2::        
+@end menu
+
 @node Notes to version 2.2
 @unnumberedsec Notes to version 2.2
 
index 829ca048a4e225d458d2616f62cee15daad9b62e..ebd3426ac09bf19a0eedc68e03c2c27591f83f92 100644 (file)
@@ -65,9 +65,16 @@ Change_iterator::process (Moment m)
     if (last)
       {
        Context * dest = 
-         get_outlet ()->find_existing_context (to_type, to_id, SCM_EOL);
+         get_outlet ()->find_existing_context (to_type, to_id);
+       if (dest)
+         {
        current->remove_context (last);
        dest->add_context (last);
+         }
+       else
+         {
+           get_music ()->origin ()->warning  ("Could not find context to switch to.");
+         }
       }
     else
       {
index f02b425f89b533c325e31f668dfaa6a1540715ea..22615244050ddf9b0befe92233818a34489fdf51 100644 (file)
@@ -812,7 +812,7 @@ Repeated_music:
                                if (list_len != 2)
                                        seq->origin ()->warning ("Chord tremolo must have 2 elements.");
                                shift -= 1;
-                               r->compress (Moment (Rational (1,list_len)));
+                               r->compress (Moment (Rational (1, list_len)));
                                }
                        gh_call3 (func, r->self_scm (), gh_int2scm (shift),gh_int2scm (dots));