]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-layout-problem.cc
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / lily / page-layout-problem.cc
index 0bb80c1f5ee0f8aafb85cfb5fd73f7636d484b6a..f1bbed8e5eb6d35b195b0dd34ba95f5ba5e377ff 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2009 Joe Neeman <joeneeman@gmail.com>
+  Copyright (C) 2009--2010 Joe Neeman <joeneeman@gmail.com>
 
   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