From 555eba6c5d21610b1ad87a68a4304946212fb69d Mon Sep 17 00:00:00 2001 From: David Nalesnik Date: Mon, 24 Aug 2015 09:13:31 -0500 Subject: [PATCH] Don't print redundant flags in chords This patch adds a check to lily/stem-engraver.cc which ensures that only one Flag grob appears for a given Stem grob. Previously, a flag was created and printed for each note of a chord. --- lily/stem-engraver.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lily/stem-engraver.cc b/lily/stem-engraver.cc index a84dd701bd..2f2eaf82da 100644 --- a/lily/stem-engraver.cc +++ b/lily/stem-engraver.cc @@ -158,7 +158,8 @@ Stem_engraver::acknowledge_rhythmic_head (Grob_info gi) Stem::add_head (stem_, gi.grob ()); if (Stem::is_normal_stem (stem_) - && Stem::duration_log (stem_) > 2) + && Stem::duration_log (stem_) > 2 + && !(unsmob (stem_->get_object ("flag")))) { Item *flag = make_item ("Flag", stem_->self_scm ()); flag->set_parent (stem_, X_AXIS); -- 2.39.5