]> git.donarmstrong.com Git - lilypond.git/commitdiff
lily/stem-engraver.cc: Improve error message for incompatible durations while stemming
authorDavid Kastrup <dak@gnu.org>
Wed, 12 Jan 2011 12:08:44 +0000 (13:08 +0100)
committerDavid Kastrup <dak@gnu.org>
Thu, 7 Apr 2011 19:04:01 +0000 (21:04 +0200)
lily/stem-engraver.cc

index ae5af1a3c451161d06ab0a823c0800ad4ee21d7e..738eaf8d1eec7e0cd4e2202f2b66c1d6c8fec53b 100644 (file)
@@ -152,9 +152,10 @@ Stem_engraver::acknowledge_rhythmic_head (Grob_info gi)
 
   if (ds != dc) 
     {
-      // FIXME: 
-      gi.event_cause ()->origin ()->warning (_f ("adding note head to incompatible stem (type = %d)",
-                                                1 << Stem::duration_log (stem_)));
+      ds = Stem::duration_log (stem_);
+      gi.event_cause ()->origin ()->warning (_f ("adding note head to incompatible stem (type = %d/%d)",
+                                                ds < 0 ? 1 << -ds : 1,
+                                                ds > 0 ? 1 << ds : 1));
       gi.event_cause ()->origin ()->warning (_ ("maybe input should specify polyphonic voices"));
     }