X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fself-alignment-interface.cc;h=d1cb1bf50ca54e92295d13ef468b0e5580585936;hb=1d765020f867995879c761f2c9351c9dc74f1df8;hp=a23d7b99cc6a64495751dd4d43fbdb37a2be4a9f;hpb=09412c25cce3fdffce7cefe491cb3849ece0ae3e;p=lilypond.git diff --git a/lily/self-alignment-interface.cc b/lily/self-alignment-interface.cc index a23d7b99cc..d1cb1bf50c 100644 --- a/lily/self-alignment-interface.cc +++ b/lily/self-alignment-interface.cc @@ -145,18 +145,10 @@ Self_alignment_interface::aligned_on_parent (Grob *me, Axis a) } void -Self_alignment_interface::set_center_parent (Grob *me, Axis a) +Self_alignment_interface::set_aligned_on_parent (Grob *me, Axis a) { add_offset_callback (me, - (a == X_AXIS) ? centered_on_x_parent_proc : centered_on_y_parent_proc, - a); -} - -void -Self_alignment_interface::set_align_self (Grob *me, Axis a) -{ - add_offset_callback (me, - (a == X_AXIS) ? x_aligned_on_self_proc : y_aligned_on_self_proc, + (a == X_AXIS) ? aligned_on_x_parent_proc : aligned_on_y_parent_proc, a); }