X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspacing-options.cc;h=f78a94a6199fc1996b4602befa57437bd1a0b8ab;hb=8b649b5ed48e87329185796af4aa10352a08ca4b;hp=c0e11fa62cf7a074a1e059d99ac1e0cd2d0a55bf;hpb=9e69cb84d6ee5b0a861cd97869b10e3bdf0c833c;p=lilypond.git diff --git a/lily/spacing-options.cc b/lily/spacing-options.cc index c0e11fa62c..f78a94a619 100644 --- a/lily/spacing-options.cc +++ b/lily/spacing-options.cc @@ -3,14 +3,16 @@ source file of the GNU LilyPond music typesetter - (c) 2006 Han-Wen Nienhuys + (c) 2006--2009 Han-Wen Nienhuys */ #include "spacing-options.hh" +#include "spacing-spanner.hh" #include "grob.hh" #include "misc.hh" #include "moment.hh" +#include "spanner.hh" void Spacing_options::init_from_grob (Grob *me) @@ -33,7 +35,6 @@ Spacing_options::init_from_grob (Grob *me) global_shortest_ = shortest_dur.main_part_; else global_shortest_ = shortest_dur.grace_part_; - } Spacing_options::Spacing_options () @@ -55,8 +56,7 @@ Spacing_options::Spacing_options () Get the measure wide ant for arithmetic spacing. */ Real -Spacing_options::get_duration_space (Rational d, - bool *expand_only) const +Spacing_options::get_duration_space (Rational d) const { Real k = shortest_duration_space_; @@ -91,7 +91,6 @@ Spacing_options::get_duration_space (Rational d, */ Real log = log_2 (global_shortest_); k -= log; - *expand_only = false; return (log_2 (d) + k) * increment_; }