]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add a warning if music overflows page.
authorJoe Neeman <joeneeman@gmail.com>
Sun, 20 Dec 2009 19:24:40 +0000 (11:24 -0800)
committerJoe Neeman <joeneeman@gmail.com>
Sun, 20 Dec 2009 19:24:40 +0000 (11:24 -0800)
lily/page-layout-problem.cc

index 0bb80c1f5ee0f8aafb85cfb5fd73f7636d484b6a..c63dbd8b9423bdd09ef4a6a5f406b103ab97080f 100644 (file)
@@ -303,6 +303,9 @@ Page_layout_problem::solve_rod_spring_problem (bool ragged)
 
   spacer.solve (page_height_, ragged);
   solution_ = spacer.spring_positions ();
+
+  if (!spacer.fits ())
+    warning (_ ("couldn't fit music on page"));
 }
 
 // The solution_ vector stores the position of every live VerticalAxisGroup