]> 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 97deba3f8fc93b41cce9767f0a17b851bcafe301..d86296fada49e3c5bcbc8558f709f275f4efe51c 100644 (file)
@@ -52,7 +52,8 @@ Rest::y_offset_callback (SCM smob)
     amount += ss / 2;
 
   if (!position_override)
-    amount += 2 * ss * get_grob_direction (me);;
+    amount += 2 * ss * get_grob_direction (me);
+
 
   return scm_from_double (amount);
 }
@@ -148,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);