{
typedef map <Context*, Grob*> Last_spacing_map;
Last_spacing_map last_spacings_;
+ Grob *last_spacing_;
Grob *spacing_;
Note_spacing_engraver::Note_spacing_engraver ()
{
spacing_ = 0;
+ last_spacing_ = 0;
}
void
ly_symbol2scm ("left-items"),
g);
- Grob *last_spacing = last_spacings_[context ()->get_parent_context ()];
- if (last_spacing)
- Pointer_group_interface::add_grob (last_spacing,
+ if (last_spacing_)
+ Pointer_group_interface::add_grob (last_spacing_,
ly_symbol2scm ("right-items"),
g);
}
if (spacing_)
{
last_spacings_[parent] = spacing_;
+ last_spacing_ = spacing_;
spacing_ = 0;
}