X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frhythmic-head.cc;h=659ba339b7be5ff29f52004cfc7a52089f787ca3;hb=f3d217ed0b93bf88eddfcb3cc1ca11f3bbf11e3b;hp=a024647d7727620b28ccdd8d4d0699fe38ecd267;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/lily/rhythmic-head.cc b/lily/rhythmic-head.cc index a024647d77..659ba339b7 100644 --- a/lily/rhythmic-head.cc +++ b/lily/rhythmic-head.cc @@ -3,16 +3,16 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2006 Han-Wen Nienhuys + (c) 1997--2009 Han-Wen Nienhuys */ #include "rhythmic-head.hh" -#include "warn.hh" +#include "item.hh" #include "rest.hh" -#include "stem.hh" #include "staff-symbol-referencer.hh" -#include "item.hh" +#include "stem.hh" +#include "warn.hh" Item * Rhythmic_head::get_dots (Grob *me) @@ -32,7 +32,7 @@ int Rhythmic_head::dot_count (Grob *me) { return get_dots (me) - ? scm_to_int (get_dots (me)->get_property ("dot-count")) : 0; + ? robust_scm2int (get_dots (me)->get_property ("dot-count"), 0) : 0; } void @@ -48,7 +48,11 @@ Rhythmic_head::duration_log (Grob *me) return scm_is_number (s) ? scm_to_int (s) : 0; } -ADD_INTERFACE (Rhythmic_head, "rhythmic-head-interface", - "Note head or rest", - "dot stem duration-log"); +ADD_INTERFACE (Rhythmic_head, + "Note head or rest.", + /* properties */ + "dot " + "duration-log " + "stem " + );