bool different = !gh_equal_p(prev_acc , gh_int2scm(a));
int p = gh_number_p(prev_acc) ? gh_scm2int(prev_acc) : 0;
- Grob *tie_break_cautionary = 0;
+ Grob *tie_break_reminder = 0;
bool tie_changes = false;
for (int i=0; i < tie_l_arr_.size (); i++)
if (support_l == Tie::head (tie_l_arr_[i], RIGHT))
{
tie_changes = different;
-#if 1
- /* Enable accidentals for broken tie */
- tie_break_cautionary = tie_l_arr_[i];
-#endif
+ /* Enable accidentals for broken tie
+
+ We only want an accidental on a broken tie,
+ if the tie changes the accidental.
+
+ Maybe check property noTieBreakForceAccidental? */
+ if (different)
+ tie_break_reminder = tie_l_arr_[i];
break;
}
if (((to_boolean (note_l->get_mus_property ("force-accidental"))
|| different)
&& !tie_changes)
- || tie_break_cautionary)
+ || tie_break_reminder)
{
if (!key_item_p_)
{
Local_key_item::add_pitch (key_item_p_, *unsmob_pitch (note_l->get_mus_property ("pitch")),
to_boolean (note_l->get_mus_property ("cautionary")),
extra_natural,
- tie_break_cautionary);
- Side_position::add_support (key_item_p_,support_l);
+ tie_break_reminder);
+ Side_position_interface::add_support (key_item_p_,support_l);
}
/*
if (key_item_p_ && grace_align_l_)
{
- Side_position::add_support (grace_align_l_,key_item_p_);
+ Side_position_interface::add_support (grace_align_l_,key_item_p_);
grace_align_l_ =0;
}
(Arpeggios are engraved left of accidentals, of course.)
*/
for (int i=0; i < arpeggios_.size (); i++)
- Side_position::add_support (arpeggios_[i], key_item_p_);
+ Side_position_interface::add_support (arpeggios_[i], key_item_p_);
arpeggios_.clear ();
}
if (key_item_p_)
{
for (int i=0; i < support_l_arr_.size(); i++)
- Side_position::add_support (key_item_p_,support_l_arr_[i]);
+ Side_position_interface::add_support (key_item_p_,support_l_arr_[i]);
typeset_grob (key_item_p_);
key_item_p_ =0;