]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-engraver.cc
lily/stem-engraver.cc: Improve error message for incompatible durations while stemming
[lilypond.git] / lily / stem-engraver.cc
index 137040766a5f6a1c710595b350f1a6dd039c4691..e21d796765ccd1cc1de4daf188b18be068e82d48 100644 (file)
@@ -134,11 +134,13 @@ Stem_engraver::acknowledge_rhythmic_head (Grob_info gi)
   if (!stem_)
     make_stem (gi);
 
-  if (Stem::duration_log (stem_) != d->duration_log ())
+  int ds = Stem::duration_log (stem_);
+
+  if (ds != d->duration_log ())
     {
-      // FIXME: 
-      gi.event_cause ()->origin ()->warning (_f ("adding note head to incompatible stem (type = %d)",
-                                                1 << 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"));
     }