From: Felipe Gonçalves Assis Date: Tue, 28 Dec 2010 04:48:21 +0000 (-0300) Subject: Fix issue 1376. X-Git-Tag: release/2.13.47-1~26 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8cb56224a07e21aa64f8d572fdf0abc941ad6f65;p=lilypond.git Fix issue 1376. When an ambitus consists of a single note with different alterations, two accidentals should be printed, no matter the key signature. --- diff --git a/lily/ambitus-engraver.cc b/lily/ambitus-engraver.cc index d4bc39e728..221c1e8881 100644 --- a/lily/ambitus-engraver.cc +++ b/lily/ambitus-engraver.cc @@ -178,7 +178,11 @@ Ambitus_engraver::finalize () ? robust_scm2rational (scm_cdr (handle), Rational (0)) : Rational (0); - if (sig_alter == p.get_alteration ()) + const Pitch other = pitch_interval_[-d]; + + if (sig_alter == p.get_alteration () + && !((p.steps () == other.steps ()) + && (p.get_alteration () != other.get_alteration ()))) { accidentals_[d]->suicide (); heads_[d]->set_object ("accidental-grob", SCM_EOL);