X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdots.cc;h=25e4cec7dd18b0233ad477d6e37c782fe97ce5fe;hb=f988425624a6f6d1a48aea0ac0c1c84ff0857e56;hp=c249d6a1cf969967cc4cfd360892e915df9e4278;hpb=8b8b92e31703bf4a23683efff479793227ad39c1;p=lilypond.git diff --git a/lily/dots.cc b/lily/dots.cc index c249d6a1cf..25e4cec7dd 100644 --- a/lily/dots.cc +++ b/lily/dots.cc @@ -26,9 +26,7 @@ Dots::quantised_position_callback (Score_element * me, Axis a) if (!Directional_element_interface::get (me)) Directional_element_interface::set (me, UP); - - int pos = int (Staff_symbol_referencer::position_f (me)); - if (!(pos % 2)) + if (Staff_symbol_referencer::on_staffline (me)) return Staff_symbol_referencer::staff_space (me) / 2.0 * Directional_element_interface::get (me); }