]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ottava-engraver.cc
Run grand replace for 2015.
[lilypond.git] / lily / ottava-engraver.cc
index aafae77401e461555bd3701b35dd022c274de3a3..a2562b785a1151b90adb4a68e7de4356e68a0a6b 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2000--2012 Han-Wen Nienhuys
+  Copyright (C) 2000--2015 Han-Wen Nienhuys
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -99,16 +99,14 @@ Ottava_spanner_engraver::typeset_all ()
 {
   if (finished_)
     {
-      Direction d = LEFT;
-      do
+      for (LEFT_and_RIGHT (d))
         {
           if (!finished_->get_bound (RIGHT))
             {
-              Grob *e = unsmob_grob (get_property ("currentMusicalColumn"));
+              Grob *e = Grob::unsmob (get_property ("currentMusicalColumn"));
               finished_->set_bound (d, e);
             }
         }
-      while (flip (&d) != LEFT);
 
       finished_ = 0;
     }
@@ -119,7 +117,7 @@ Ottava_spanner_engraver::stop_translation_timestep ()
 {
   if (span_ && !span_->get_bound (LEFT))
     {
-      Grob *e = unsmob_grob (get_property ("currentMusicalColumn"));
+      Grob *e = Grob::unsmob (get_property ("currentMusicalColumn"));
       span_->set_bound (LEFT, e);
     }