X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftuplet-number.cc;h=a378f9b87bd72b4097655e2a2eaed026ba85220b;hb=1250bccd52cc74203c10f7815008bd47635fcf83;hp=7ace42eb3a413429552834cdd5773451407908a9;hpb=650de768fe5874602071f0216ce065ec7e6a6731;p=lilypond.git diff --git a/lily/tuplet-number.cc b/lily/tuplet-number.cc index 7ace42eb3a..a378f9b87b 100644 --- a/lily/tuplet-number.cc +++ b/lily/tuplet-number.cc @@ -1,10 +1,21 @@ /* - tuplet-number.cc -- implement Tuplet_number + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2005--2009 Han-Wen Nienhuys - (c) 2005--2007 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "tuplet-bracket.hh" @@ -35,16 +46,6 @@ Tuplet_number::print (SCM smob) return SCM_EOL; } - /* - Don't print if it doesn't span time. - */ - if (robust_scm2moment (tuplet->get_bound (LEFT)->get_column ()->get_property ("when"), Moment (0)) - == robust_scm2moment (tuplet->get_bound (RIGHT)->get_column ()->get_property ("when"), Moment (0))) - { - me->suicide (); - return SCM_EOL; - } - SCM stc_scm = Text_interface::print (smob); Stencil *stc = unsmob_stencil (stc_scm); @@ -72,14 +73,14 @@ SCM Tuplet_number::calc_cross_staff (SCM smob) { Grob *me = unsmob_grob (smob); - return unsmob_grob (me->get_object ("bracket"))->get_property ("cross_staff"); + return unsmob_grob (me->get_object ("bracket"))->get_property ("cross-staff"); } ADD_INTERFACE (Tuplet_number, - "The number for a bracket. " - , + "The number for a bracket.", /* properties */ "avoid-slur " // UGH. - "bracket "); + "bracket " + );