X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fvaticana-ligature.cc;h=d8ac36b9a30c2c8f55b14bbcf8d6e5217a6378e2;hb=3f92dcb2c81dcd2755542b57a0a5f2039f29a211;hp=42511f7243f141c7071630eeb5b94fad823d8ee5;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/vaticana-ligature.cc b/lily/vaticana-ligature.cc index 42511f7243..d8ac36b9a3 100644 --- a/lily/vaticana-ligature.cc +++ b/lily/vaticana-ligature.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2003--2011 Juergen Reuter + Copyright (C) 2003--2014 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 @@ -37,8 +37,7 @@ vaticana_brew_cauda (Grob *me, Real blotdiameter) { bool on_staffline = Staff_symbol_referencer::on_line (me, pos); - int interspaces = Staff_symbol_referencer::line_count (me) - 1; - bool above_staff = pos > interspaces; + bool above_staff = pos > Staff_symbol_referencer::staff_span (me)[UP]; if (delta_pitch > -1) { @@ -185,8 +184,8 @@ vaticana_brew_join (Grob *me, int delta_pitch, Real staff_space = Staff_symbol_referencer::staff_space (me); if (!delta_pitch) { - me->programming_error (_ ("Vaticana_ligature: " - "zero join (delta_pitch == 0)")); + me->programming_error ("Vaticana_ligature: " + "zero join (delta_pitch == 0)"); return Lookup::blank (Box (Interval (0, 0), Interval (0, 0))); } Interval x_extent = Interval (0, join_thickness);