From: fred Date: Wed, 27 Mar 2002 00:35:32 +0000 (+0000) Subject: lilypond-1.3.130 X-Git-Tag: release/1.5.59~992 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0726b2f0dd1c844f8b0117e8b4ebb5974c0ca21d;p=lilypond.git lilypond-1.3.130 --- diff --git a/lily/note-head.cc b/lily/note-head.cc index 9af3c41f2a..bfd06f0807 100644 --- a/lily/note-head.cc +++ b/lily/note-head.cc @@ -5,6 +5,7 @@ (c) 1997--2000 Han-Wen Nienhuys */ +#include #include "misc.hh" #include "dots.hh" @@ -60,7 +61,7 @@ Note_head::brew_molecule (SCM smob) Real inter_f = Staff_symbol_referencer::staff_space (me)/2; int sz = Staff_symbol_referencer::line_count (me)-1; - int p = (int)Staff_symbol_referencer::position_f (me); + int p = (int) rint (Staff_symbol_referencer::position_f (me)); int streepjes_i = abs (p) < sz ? 0 : (abs(p) - sz) /2;