From 243dab36d0ec9b8942b64d582366e56e4630c069 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 16 Jun 2006 10:37:37 +0000 Subject: [PATCH] * lily/breathing-sign.cc (offset_callback): idem. * lily/align-interface.cc (align_to_fixed_distance): remove hungarian suffix. --- ChangeLog | 5 +++++ lily/align-interface.cc | 8 ++++---- lily/breathing-sign.cc | 9 ++++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7fcc442275..f464a1aa66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-06-16 Han-Wen Nienhuys + * lily/breathing-sign.cc (offset_callback): idem. + + * lily/align-interface.cc (align_to_fixed_distance): remove + hungarian suffix. + * lily/beaming-pattern.cc (count_factor_twos): oops. We want to x%2==0. diff --git a/lily/align-interface.cc b/lily/align-interface.cc index 410344dae2..afe470251c 100644 --- a/lily/align-interface.cc +++ b/lily/align-interface.cc @@ -93,7 +93,7 @@ Align_interface::align_to_fixed_distance (Grob *me, Axis a) vector elems (elem_source); // writable.. - Real where_f = 0; + Real where = 0; Interval v; v.set_empty (); @@ -118,9 +118,9 @@ Align_interface::align_to_fixed_distance (Grob *me, Axis a) for (vsize j = 0; j < elems.size (); j++) { - where_f += stacking_dir * dy; - translates.push_back (where_f); - v.unite (Interval (where_f, where_f)); + where += stacking_dir * dy; + translates.push_back (where); + v.unite (Interval (where, where)); } /* diff --git a/lily/breathing-sign.cc b/lily/breathing-sign.cc index f39e748fb5..f8d02996f4 100644 --- a/lily/breathing-sign.cc +++ b/lily/breathing-sign.cc @@ -173,11 +173,14 @@ Breathing_sign::offset_callback (SCM smob) set_grob_direction (me, d); } - Real inter_f = Staff_symbol_referencer::staff_space (me) / 2; + Real inter = Staff_symbol_referencer::staff_space (me) / 2; int sz = Staff_symbol_referencer::line_count (me) - 1; - return scm_from_double (inter_f * sz * d); + return scm_from_double (inter * sz * d); } ADD_INTERFACE (Breathing_sign, "breathing-sign-interface", "A breathing sign.", - "direction"); + + "direction " + + ); -- 2.39.2