+ // We only keep track of ending moments for columns with notes.
+ // It is safe to add a column with notes to multiple RestCollisions, but
+ // it might not be safe to add a column with rests to multiple RestCollisions.
+ Grob *stem = Note_column::get_stem (i.grob ());
+ Stream_event *ev = stem ? stem->event_cause () : 0;
+ Duration *dur_ptr = ev ? unsmob_duration (ev->get_property ("duration")) : 0;
+ if (dur_ptr)
+ {
+ if (end.grace_part_)
+ end.grace_part_ += dur_ptr->get_length ();
+ else
+ end.main_part_ += dur_ptr->get_length ();
+ }