]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/measure-grouping-spanner.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / measure-grouping-spanner.cc
index 5d5b9a0758c578f783f918fdee17deef643758ea..052aae12ac6071a5799de95728f7bf0e33efa4b2 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2002--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2002--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@ MAKE_SCHEME_CALLBACK (Measure_grouping, print, 1);
 SCM
 Measure_grouping::print (SCM grob)
 {
-  Spanner *me = dynamic_cast<Spanner *> (unsmob_grob (grob));
+  Spanner *me = unsmob<Spanner> (grob);
 
   SCM which = me->get_property ("style");
   Real height = robust_scm2double (me->get_property ("height"), 1);
@@ -48,9 +48,9 @@ Measure_grouping::print (SCM grob)
   /*
     TODO: use line interface
   */
-  if (which == ly_symbol2scm ("bracket"))
+  if (scm_is_eq (which, ly_symbol2scm ("bracket")))
     m = Lookup::bracket (X_AXIS, iv, t, -height, t);
-  else if (which == ly_symbol2scm ("triangle"))
+  else if (scm_is_eq (which, ly_symbol2scm ("triangle")))
     m = Lookup::triangle (iv, t, height);
 
   m.align_to (Y_AXIS, DOWN);