]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/drum-note-engraver.cc
Doc: NR - Explain LP footer string is 'tagline'
[lilypond.git] / lily / drum-note-engraver.cc
index 251d2099fe52ae5eee7c4938a44cbd42136bb070..09a58fa24b873722f89bddc8310cc41ed529f1ef 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--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
@@ -76,7 +76,7 @@ Drum_notes_engraver::process_music ()
 
       SCM defn = SCM_EOL;
 
-      if (scm_hash_table_p (tab) == SCM_BOOL_T)
+      if (to_boolean (scm_hash_table_p (tab)))
         defn = scm_hashq_ref (tab, drum_type, SCM_EOL);
 
       if (scm_is_pair (defn))
@@ -85,7 +85,7 @@ Drum_notes_engraver::process_music ()
           SCM style = scm_car (defn);
           SCM script = scm_cadr (defn);
 
-          if (scm_integer_p (pos) == SCM_BOOL_T)
+          if (scm_is_integer (pos))
             note->set_property ("staff-position", pos);
           if (scm_is_symbol (style))
             note->set_property ("style", style);
@@ -128,6 +128,8 @@ Drum_notes_engraver::acknowledge_note_column (Grob_info inf)
       if (!e->get_parent (X_AXIS)
           && Side_position_interface::get_axis (e) == Y_AXIS)
         e->set_parent (inf.grob (), X_AXIS);
+
+      Side_position_interface::add_support (e, inf.grob ());
     }
 }