]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-spacing-result.cc
Fix #743: Reinstate warnings for unterminated span dynamics.
[lilypond.git] / lily / page-spacing-result.cc
index f677476b34a731abfcdddd6e3a09b5b61dd219d1..19ae1d9b76085bf517606845f805daf90e80a938 100644 (file)
@@ -3,16 +3,18 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 2007 Han-Wen Nienhuys <hanwen@lilypond.org>
+  (c) 2007--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
   
 */
 
 #include "page-spacing-result.hh"
+#include <cstdio>
 
 Page_spacing_result::Page_spacing_result ()
 {
   penalty_ = 0;
   demerits_ = infinity_f;
+  system_count_status_ = SYSTEM_COUNT_OK;
 }
 
 vsize
@@ -41,3 +43,12 @@ Page_spacing_result::average_force () const
   average_force /= page_count ();
   return average_force;
 }
+
+void
+Page_spacing_result::print () const
+{
+  printf ("penalty %lf, demerits %lf\n" , penalty_, demerits_);
+  for (vsize i = 0; i < page_count (); i++)
+    printf (" %d:  #sys=%d, force=%lf\n", int (i), int (systems_per_page_[i]),
+           force_[i]);
+}