X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fvolta-bracket.cc;h=d5f4bc6daaee71fe46c0a4611e6e3d05eba8c472;hb=a9d9433bc7b95cb2d4b3d96eefce7a8437c0d44e;hp=9c2e4ea669921abec644dd8159dde2f15500dd4b;hpb=9e69cb84d6ee5b0a861cd97869b10e3bdf0c833c;p=lilypond.git diff --git a/lily/volta-bracket.cc b/lily/volta-bracket.cc index 9c2e4ea669..d5f4bc6daa 100644 --- a/lily/volta-bracket.cc +++ b/lily/volta-bracket.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2006 Jan Nieuwenhuizen + (c) 1997--2009 Jan Nieuwenhuizen */ #include @@ -99,7 +99,7 @@ Volta_bracket_interface::print (SCM smob) num.align_to (Y_AXIS, UP); num.translate_axis (-0.5, Y_AXIS); total.add_at_edge (X_AXIS, LEFT, num, - num.extent (X_AXIS).length () - - 1.0, 0); + - 1.0); } total.translate_axis (left, X_AXIS); @@ -119,7 +119,7 @@ Volta_bracket_interface::modify_edge_height (Spanner *me) extract_grob_set (me, "bars", bars); Grob *endbar = bars.size () ? bars.back () : 0; - SCM glyph = endbar ? endbar->get_property ("glyph") : SCM_EOL; + SCM glyph = endbar ? endbar->get_property ("glyph-name") : SCM_EOL; string str; if (scm_is_string (glyph)) @@ -132,6 +132,8 @@ Volta_bracket_interface::modify_edge_height (Spanner *me) && str != "|:" && str != "|." && str != ":|:" + && str != ":|.|:" + && str != ":|.:" && str != ".|"); if (no_vertical_end || no_vertical_start) @@ -156,21 +158,15 @@ void Volta_bracket_interface::add_bar (Grob *me, Item *b) { Pointer_group_interface::add_grob (me, ly_symbol2scm ("bars"), b); - Side_position_interface::add_support (me, b); add_bound_item (dynamic_cast (me), b); } -void -Volta_bracket_interface::add_column (Grob *me, Grob *c) -{ - Side_position_interface::add_support (me, c); -} - ADD_INTERFACE (Volta_bracket_interface, - "Volta bracket with number", + "Volta bracket with number.", /* properties */ "bars " "thickness " - "height"); + "height " + );