]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/vertical-align-engraver.cc
2003 -> 2004
[lilypond.git] / lily / vertical-align-engraver.cc
index e8929f23fde821dceadab2327940f2e4ab981599..0007e6cb5e34e54171e0475fc89667c8ed4a37d1 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 #include "translator-group.hh"
 #include "paper-column.hh"
@@ -37,19 +37,21 @@ Vertical_align_engraver::process_music ()
     {
       valign_ =make_spanner ("VerticalAlignment");
       valign_->set_bound (LEFT,unsmob_grob (get_property ("currentCommandColumn")));
-      announce_grob(valign_ , SCM_EOL);
+      announce_grob (valign_ , SCM_EOL);
     }
 }
 
 void
 Vertical_align_engraver::finalize ()
 {
-  valign_->set_bound (RIGHT,unsmob_grob (get_property ("currentCommandColumn")));
-  typeset_grob (valign_);
-  valign_ =0;
+  if (valign_)
+    {
+      valign_->set_bound (RIGHT,unsmob_grob (get_property ("currentCommandColumn")));
+      typeset_grob (valign_);
+      valign_ =0;
+    }
 }
 
-
 bool
 Vertical_align_engraver::qualifies_b (Grob_info i) const
 {