]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fixes round problem
authorMike Solomon <mike@apollinemike.com>
Tue, 1 Mar 2011 13:10:27 +0000 (08:10 -0500)
committerMike Solomon <mike@apollinemike.com>
Tue, 1 Mar 2011 13:10:27 +0000 (08:10 -0500)
lily/beam-quanting.cc

index cc2c707dffdad3aaaedffbe3da6bd7d93598f2b2..4445305db8da19941c427bc9d82216dbfa16515e 100644 (file)
@@ -632,7 +632,7 @@ Beam_scoring_problem::score_horizontal_inter_quants (Beam_configuration *config)
   if (config->y.delta() == 0.0 && abs (config->y[LEFT]) < staff_radius * staff_space)
     {
       Real yshift = config->y[LEFT] - 0.5 * staff_space;
-      if (abs (round(yshift) - yshift) < 0.01 * staff_space)
+      if (abs ((int)(yshift + 0.5) - yshift) < 0.01 * staff_space)
         config->add (parameters.HORIZONTAL_INTER_QUANT_PENALTY, "H");
     }
 }