/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1997--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if (rest)
{
chain_offset_callback (rest,
- ly_make_unpure_pure_container
- (Rest_collision::force_shift_callback_rest_proc,
- ly_lily_module_constant ("pure-chain-offset-callback")),
- Y_AXIS);
+ Unpure_pure_container::make_smob
+ (Rest_collision::force_shift_callback_rest_proc,
+ ly_lily_module_constant ("pure-chain-offset-callback")),
+ Y_AXIS);
}
}
for (vsize i = 0; i < elts.size (); i++)
{
Grob *e = elts[i];
- if (Grob::unsmob (e->get_object ("rest")))
- rests.push_back (e);
- else
- notes.push_back (e);
+ if (Note_column::has_interface (e))
+ {
+ if (Grob::unsmob (e->get_object ("rest")))
+ rests.push_back (e);
+ else
+ notes.push_back (e);
+ }
}
/*