>From 86c2699f3a687c415b963976be238ba0202834c7 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 12 Jan 2011 13:08:44 +0100 Subject: [PATCH 2/2] lily/stem-engraver.cc: Improve error message for incompatible durations while stemming --- lily/stem-engraver.cc | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lily/stem-engraver.cc b/lily/stem-engraver.cc index 96ebd10..7b6b8a3 100644 --- a/lily/stem-engraver.cc +++ b/lily/stem-engraver.cc @@ -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")); } -- 1.7.2.3