X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Ftime-signature.cc;h=93717f10e2229c115f444278000a0723311bcff9;hb=10fce7970987502ec8340819411897a829f6be23;hp=ba2a32cf3370d51d1ea33089db0f6b86fd1842fa;hpb=f525f992e5dbeb579981153775cc9ee10b78cb3f;p=lilypond.git diff --git a/lily/time-signature.cc b/lily/time-signature.cc index ba2a32cf33..93717f10e2 100644 --- a/lily/time-signature.cc +++ b/lily/time-signature.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1996--2004 Han-Wen Nienhuys + (c) 1996--2005 Han-Wen Nienhuys */ @@ -27,7 +27,7 @@ MAKE_SCHEME_CALLBACK (Time_signature, print, 1); SCM Time_signature::print (SCM smob) { - Grob * me = unsmob_grob (smob); + Grob *me = unsmob_grob (smob); SCM st = me->get_property ("style"); SCM frac = me->get_property ("fraction"); int n = 4; @@ -40,18 +40,14 @@ Time_signature::print (SCM smob) Stencil m; if (st == ly_symbol2scm ("single-digit")) - { - m = numbered_time_signature (me, n, 0); - } + m = numbered_time_signature (me, n, 0); else if (scm_is_symbol (st)) - { - m = special_time_signature (me, st, n, d); - } + m = special_time_signature (me, st, n, d); else - m = numbered_time_signature (me, n,d); + m = numbered_time_signature (me, n, d); if (Staff_symbol_referencer::line_count (me) % 2 == 0) - m.translate_axis (Staff_symbol_referencer::staff_space (me)/2 , Y_AXIS); + m.translate_axis (Staff_symbol_referencer::staff_space (me) / 2 , Y_AXIS); return m.smobbed_copy (); } @@ -92,7 +88,7 @@ Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d) } Stencil -Time_signature::numbered_time_signature (Grob*me,int num, int den) +Time_signature::numbered_time_signature (Grob*me, int num, int den) { SCM chain = me->get_property_alist_chain (Font_interface::text_font_alist_chain (me)); chain = scm_cons (scm_list_1 (scm_cons (ly_symbol2scm ("font-encoding"), @@ -113,7 +109,7 @@ Time_signature::numbered_time_signature (Grob*me,int num, int den) if (den) { m.add_at_edge (Y_AXIS, UP, n, 0.0, 0); - m.add_at_edge (Y_AXIS, DOWN, d, 0.0,0); + m.add_at_edge (Y_AXIS, DOWN, d, 0.0, 0); } else {