X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbreathing-sign.cc;h=6037e777e510d24289cdb8634aa184d1bfbd7114;hb=8659a99f233f5c4684292728e7ad4206669b35b0;hp=9abe9fe98dfd5eb03a3d67144ff33773b7693892;hpb=82bc9ad690e201aaa55694f8b92261ae7338f56a;p=lilypond.git diff --git a/lily/breathing-sign.cc b/lily/breathing-sign.cc index 9abe9fe98d..6037e777e5 100644 --- a/lily/breathing-sign.cc +++ b/lily/breathing-sign.cc @@ -1,8 +1,8 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1999--2014 Michael Krause - Extensions for ancient notation (c) 2003--2014 by Juergen Reuter + Copyright (C) 1999--2015 Michael Krause + Extensions for ancient notation (c) 2003--2015 by Juergen Reuter LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -43,7 +43,7 @@ MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_minima, 1); SCM Breathing_sign::divisio_minima (SCM smob) { - Grob *me = unsmob_grob (smob); + Grob *me = unsmob (smob); Real staff_space = Staff_symbol_referencer::staff_space (me); Real thickness = Staff_symbol_referencer::line_thickness (me); @@ -69,7 +69,7 @@ MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_maior, 1); SCM Breathing_sign::divisio_maior (SCM smob) { - Grob *me = unsmob_grob (smob); + Grob *me = unsmob (smob); Real thickness = Staff_symbol_referencer::line_thickness (me); thickness *= robust_scm2double (me->get_property ("thickness"), 1.0); @@ -119,7 +119,7 @@ Breathing_sign::divisio_maior (SCM smob) ydim[DOWN]); assert (line_pos.begin () < it); double val = (it[-1] + it[0]) / 2; - if (ydim[DOWN] < val && line_pos.begin () < it + 1) + if (ydim[DOWN] < val && line_pos.begin () < it - 1) val = (it[-2] + it[-1]) / 2; ydim.add_point (val); @@ -149,7 +149,7 @@ MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_maxima, 1); SCM Breathing_sign::divisio_maxima (SCM smob) { - Grob *me = unsmob_grob (smob); + Grob *me = unsmob (smob); Real staff_space = Staff_symbol_referencer::staff_space (me); Real thickness = Staff_symbol_referencer::line_thickness (me); thickness *= robust_scm2double (me->get_property ("thickness"), 1.0); @@ -172,7 +172,7 @@ MAKE_SCHEME_CALLBACK (Breathing_sign, finalis, 1); SCM Breathing_sign::finalis (SCM smob) { - Grob *me = unsmob_grob (smob); + Grob *me = unsmob (smob); Real staff_space = Staff_symbol_referencer::staff_space (me); Real thickness = Staff_symbol_referencer::line_thickness (me); thickness *= robust_scm2double (me->get_property ("thickness"), 1.0); @@ -196,7 +196,7 @@ MAKE_SCHEME_CALLBACK (Breathing_sign, offset_callback, 1); SCM Breathing_sign::offset_callback (SCM smob) { - Grob *me = unsmob_grob (smob); + Grob *me = unsmob (smob); Direction d = get_grob_direction (me); if (!d)