]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-book.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / paper-book.cc
index 81376da0a4b2e1bb2519cb83df14ff883442b9bb..8ef498aaec847516fe388469e4d3f9db22e25bd8 100644 (file)
@@ -381,21 +381,7 @@ Paper_book::pages ()
 
   pages_ = SCM_EOL;
   SCM proc = paper_->c_variable ("page-breaking");
-  pages_ = scm_apply_0 (proc, scm_list_1(self_scm ()));
-
-  /* set systems_ from the pages */
-  if (systems_ == SCM_BOOL_F)
-    {
-      systems_ = SCM_EOL;
-      for (SCM p = pages_; p != SCM_EOL; p = scm_cdr (p))
-       {
-         Prob *page = unsmob_prob (scm_car (p));
-         SCM systems = page->get_property ("lines");
-
-         systems_ = scm_append (scm_list_2 (systems_, systems));
-       }
-    }
-
+  pages_ = scm_apply_0 (proc, scm_list_2 (systems (), self_scm ()));
   return pages_;
 }