X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Fslur.cc;h=f13ba1dd5324fbad11dee39242797cbee6192bd0;hb=19fbc4154436823f3365e0bc42c4420f2233a860;hp=ce3429f892105637767a0a3056c5891baced6571;hpb=a29d88732450263547dda249847d1a9b6f4cac86;p=lilypond.git diff --git a/lily/slur.cc b/lily/slur.cc index ce3429f892..f13ba1dd53 100644 --- a/lily/slur.cc +++ b/lily/slur.cc @@ -81,13 +81,6 @@ Slur::do_pre_processing () } -static int -Note_column_compare (Note_column *const&n1 , Note_column* const&n2) -{ - return Item::left_right_compare (n1, n2); -} - - Offset Slur::encompass_offset (Note_column const* col) const { @@ -135,10 +128,10 @@ Slur::encompass_offset (Note_column const* col) const void Slur::do_post_processing () { - Link_array encompass_arr = + Link_array encompass_arr = Group_interface__extract_elements (this, (Note_column*)0, "note-columns"); - encompass_arr.sort (Note_column_compare); + if (!get_direction ()) set_direction (get_default_dir ());