]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rest.cc
grob.cc: rewrite O(n^2) algorithm in Grob::common_refpoint algorithm to O(n)
[lilypond.git] / lily / rest.cc
index 0115e5176fbbf56921767051b0389b85ab84eee2..d86296fada49e3c5bcbc8558f709f275f4efe51c 100644 (file)
@@ -149,10 +149,7 @@ Rest::brew_internal_stencil (Grob *me, bool ledgered)
 
   int balltype = scm_to_int (balltype_scm);
 
-  string style;
-  SCM style_scm = me->get_property ("style");
-  if (scm_is_symbol (style_scm))
-    style = ly_scm2string (scm_symbol_to_string (style_scm));
+  string style = robust_symbol2string (me->get_property ("style"), "default");
 
   Font_metric *fm = Font_interface::get_default_font (me);
   string font_char = glyph_name (me, balltype, style, ledgered);