From: Joe Neeman Date: Sun, 20 Dec 2009 19:24:40 +0000 (-0800) Subject: Add a warning if music overflows page. X-Git-Tag: release/2.13.10-1~127 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1efabc2969ec26b92e680fce2d84b3bbc80384a3;p=lilypond.git Add a warning if music overflows page. --- diff --git a/lily/page-layout-problem.cc b/lily/page-layout-problem.cc index 0bb80c1f5e..c63dbd8b94 100644 --- a/lily/page-layout-problem.cc +++ b/lily/page-layout-problem.cc @@ -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