X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-layout-problem.cc;h=f1bbed8e5eb6d35b195b0dd34ba95f5ba5e377ff;hb=87aec4a93a0fe08275dd6cce6961dd9f80f581d1;hp=0bb80c1f5ee0f8aafb85cfb5fd73f7636d484b6a;hpb=38390d00c6667636e32f6781c2c48b69c4c407f3;p=lilypond.git diff --git a/lily/page-layout-problem.cc b/lily/page-layout-problem.cc index 0bb80c1f5e..f1bbed8e5e 100644 --- a/lily/page-layout-problem.cc +++ b/lily/page-layout-problem.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2009 Joe Neeman + Copyright (C) 2009--2010 Joe Neeman LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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