+/*
+ Find Y-axis parent of G that has a #'forced-distance property. This
+ has the effect of finding the piano-staff given an object in that
+ piano staff.
+ */
+Grob *
+find_fixed_alignment_parent (Grob *g)
+{
+ while (g)
+ {
+ if (ly_c_number_p (g->get_property ("forced-distance")))
+ return g;
+
+ g = g->get_parent (Y_AXIS);
+ }
+
+ return 0;
+}
+
+
+