--- ../denemo-cvs/denemo/src/mousing.c 2007-01-24 19:44:26.000000000 +0000 +++ denemo/src/mousing.c 2007-10-20 16:28:03.000000000 +0100 @@ -18,7 +18,7 @@ offset_from_height (gdouble height, enum clefs clef) { /* Offset from the top of the staff, in half-tones. */ - gint half_tone_offset = (gint) (height / HALF_LINE_SPACE + 0.5); + gint half_tone_offset = ((gint) (height / HALF_LINE_SPACE+((height>0)?0.5:-0.5))); #define R(x) return x - half_tone_offset