]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-score.cc
patch::: 1.3.33.jcn3
[lilypond.git] / lily / paper-score.cc
index 0b487a077b78a6d7af26b57fcaf40c453182cf38..41a4fcd8e0e18c8f79d423bdedb4e982b5d25fcc 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996,  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "main.hh"
@@ -110,7 +110,6 @@ Paper_score::calc_breaking ()
 void
 Paper_score::process ()
 {
-
   print ();
   progress_indication (_ ("Preprocessing elements...") + " ");
   line_l_->breakable_col_processing ();
@@ -133,7 +132,7 @@ Paper_score::process ()
       Score_element *sc = unsmob_element (gh_car (s));
       sc->handle_broken_dependencies ();
     }
-
+  
   outputter_l_ = new Paper_outputter ;
   outputter_l_->output_header ();
 
@@ -226,6 +225,11 @@ Paper_score::fixup_refpoints ()
        {
          Score_element * se = unsmob_element (e);
          se->fixup_refpoint ();
+
+         if (!dynamic_cast<Line_of_score*> (se) && !se->parent_l (Y_AXIS))
+           {
+             programming_error ("No parent!");
+           }
        }
     }
 }