]> git.donarmstrong.com Git - lilypond.git/commitdiff
(stop_translation_timestep): don't
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 19 Aug 2006 18:31:38 +0000 (18:31 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 19 Aug 2006 18:31:38 +0000 (18:31 +0000)
crash if spacing_ is nonexistent.

lily/spacing-engraver.cc

index d544410227cff4d0ef252a933a8a8c0ebf94ea48..c35d5fe98b08abbe2412bb7ce13230fb887c7fb8 100644 (file)
@@ -170,10 +170,14 @@ Spacing_engraver::stop_translation_timestep ()
   Paper_column *musical_column
     = dynamic_cast<Paper_column *> (unsmob_grob (get_property ("currentMusicalColumn")));
 
-  musical_column->set_object ("spacing", spacing_->self_scm ());
-  unsmob_grob (get_property ("currentCommandColumn"))
-    ->set_object ("spacing", spacing_->self_scm ());
 
+  if (spacing_)
+    {  
+      musical_column->set_object ("spacing", spacing_->self_scm ());
+      unsmob_grob (get_property ("currentCommandColumn"))
+       ->set_object ("spacing", spacing_->self_scm ());
+    }
+  
   SCM proportional = get_property ("proportionalNotationDuration");
   if (unsmob_moment (proportional))
     {