From 1efabc2969ec26b92e680fce2d84b3bbc80384a3 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Sun, 20 Dec 2009 11:24:40 -0800 Subject: [PATCH] Add a warning if music overflows page. --- lily/page-layout-problem.cc | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5