]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-head.cc
* lily/include/translator.icc: new file.
[lilypond.git] / lily / note-head.cc
index abf3599ac2a37838e3b89bae5bb430aa9e1f1ff8..796e01b3a342eca856f5cea7140eca97db558b97 100644 (file)
@@ -41,8 +41,9 @@ internal_print (Grob *me, String *font_char)
   SCM log = scm_int2num (Note_head::get_balltype (me));
   SCM proc = me->get_property ("glyph-name-procedure");
 
-  String suffix =  to_string (robust_scm2int (me->get_property ("duration-log"), 2));
-  if (ly_is_procedure (proc))
+  String suffix =  to_string (min (robust_scm2int (me->get_property ("duration-log"), 2), 2));
+  if (style != ly_symbol2scm ("default")
+      && ly_is_procedure (proc))
     suffix = ly_scm2string (scm_call_2 (proc, log, style));
   
   Font_metric *fm = Font_interface::get_default_font (me);