From 8cb56224a07e21aa64f8d572fdf0abc941ad6f65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felipe=20Gon=C3=A7alves=20Assis?= Date: Tue, 28 Dec 2010 01:48:21 -0300 Subject: [PATCH] Fix issue 1376. When an ambitus consists of a single note with different alterations, two accidentals should be printed, no matter the key signature. --- lily/ambitus-engraver.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.5