From 5671dff9dd454304ac080da29b98af365582e4b7 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Sat, 14 Jul 2007 09:16:02 +1000 Subject: [PATCH] don't treat slurs over time signatures as cross-staff --- lily/slur.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lily/slur.cc b/lily/slur.cc index 10ca90c428..22535ef765 100644 --- a/lily/slur.cc +++ b/lily/slur.cc @@ -368,8 +368,15 @@ Slur::calc_cross_staff (SCM smob) extract_grob_set (me, "note-columns", cols); extract_grob_set (me, "encompass-objects", extras); + /* the separation items are dealt with in replace_breakable_encompass_objects + so we can ignore them here */ + vector non_sep_extras; + for (vsize i = 0; i < extras.size (); i++) + if (!Separation_item::has_interface (extras[i])) + non_sep_extras.push_back (extras[i]); + Grob *common = common_refpoint_of_array (cols, me, Y_AXIS); - common = common_refpoint_of_array (extras, common, Y_AXIS); + common = common_refpoint_of_array (non_sep_extras, common, Y_AXIS); return scm_from_bool (common != me->get_parent (Y_AXIS)); } -- 2.39.2