]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/auto-change-iterator.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / auto-change-iterator.cc
index bbf2fe509f0d4e1f8b0b671f7b7c35355778022c..f5c54f224ce37f508faa70e3a905c7d87a592b70 100644 (file)
@@ -63,22 +63,24 @@ Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym,
     }
 
   if (current)
-    if (last)
-      {
-       Context *dest
-         = it->get_outlet ()->find_create_context (to_type_sym, to_id, SCM_EOL);
-       current->remove_context (last);
-       dest->add_context (last);
-      }
-    else
-      {
-       /*
-         We could change the current translator's id, but that would make
-         errors hard to catch
-
-       */
-      }
-  else;
+    {
+      if (last)
+       {
+         Context *dest
+           = it->get_outlet ()->find_create_context (to_type_sym, to_id, SCM_EOL);
+         current->remove_context (last);
+         dest->add_context (last);
+       }
+      else
+       {
+         /*
+           We could change the current translator's id, but that would make
+           errors hard to catch
+
+         */
+         ;
+       }
+    }
 }
 
 void