]> git.donarmstrong.com Git - lilypond.git/commitdiff
(try_music): add measure before
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 18 Apr 2005 15:18:56 +0000 (15:18 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 18 Apr 2005 15:18:56 +0000 (15:18 +0000)
next_moment to future processing moment. Fixes:
percent-repeat-mm-rest.ly
(process_music): don't add moment for 2nd time.

lily/percent-repeat-engraver.cc

index eb1b317b2257fe4bf71e77345723bba8cb247d73..db9225a0554a0e7c7782f926a78033e0242b4b1a 100644 (file)
@@ -139,11 +139,14 @@ Percent_repeat_engraver::process_music ()
       else if (repeat_sign_type_ == DOUBLE_MEASURE)
        {
          double_percent_ = make_item ("DoublePercentRepeat", repeat_->self_scm ());
+         
          /*
            forbid breaks on a % line. Should forbid all breaks, really.
-         */
 
-         get_score_engraver ()->forbid_breaks ();      // guh. Use properties!      
+           Ugh. Why can't this be regular communication between
+           contexts?
+         */
+         get_score_engraver ()->forbid_breaks ();
        }
       next_moment_ = next_moment_ + body_length_;
     }