]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/break-align-engraver.cc
Doc: scm - Clarify ly:context-pushpop-property
[lilypond.git] / lily / break-align-engraver.cc
index 1013ac6e7be4b9a2b164f76dfd7e6c62f1a87145..f9090c8e0829718e61a594437d185ac3e235d771 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1999--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1999--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
@@ -118,7 +118,7 @@ Break_align_engraver::create_alignment (Grob_info inf)
   Context *origin = inf.origin_contexts (this)[0];
 
   Translator_group *tg = origin->implementation ();
-  Engraver *random_source = dynamic_cast<Engraver *> (unsmob_translator (scm_car (tg->get_simple_trans_list ())));
+  Engraver *random_source = unsmob<Engraver> (scm_car (tg->get_simple_trans_list ()));
   if (!random_source)
     random_source = this;
 
@@ -136,9 +136,9 @@ Break_align_engraver::add_to_group (SCM align_name, Item *item)
   SCM s = scm_assoc (align_name, column_alist_);
   Item *group = 0;
 
-  if (s != SCM_BOOL_F)
+  if (scm_is_true (s))
     {
-      Grob *e = unsmob_grob (scm_cdr (s));
+      Grob *e = unsmob<Grob> (scm_cdr (s));
       group = dynamic_cast<Item *> (e);
     }
   else