]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slash-repeat-engraver.cc
* lily/translator.cc, lily/context.cc:, lily/translator-group.cc:
[lilypond.git] / lily / slash-repeat-engraver.cc
index 18d5312311b01d2bb74dfa90e62a6b1c328161c5..37595526c55afe19b13429dcb27d7f91b0ee7106 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "bar-line.hh"
 #include "global-context.hh"
+#include "international.hh"
 #include "item.hh"
 #include "misc.hh"
 #include "percent-repeat-iterator.hh"
@@ -48,7 +49,9 @@ Slash_repeat_engraver::listen_percent (Stream_event *ev)
     = robust_scm2moment (get_property ("measureLength"), Moment (0));
   
   if (get_event_length (ev) < meas_length)
-    slash_ = ev;
+    ASSIGN_EVENT_ONCE (slash_, ev);
+  else
+    ev->origin ()->warning (_ ("Slash repeat doesn't fit in one measure, junking"));
 }
 
 void