X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-spacing-result.cc;h=b1d5a2310bdffc7f4e92b2c704c5dcb679e435f0;hb=35ea0d996335cbc46c572e920c8515a504047531;hp=7e42dc96cb89b9036962c0bfdbdd93f4186e5d23;hpb=f39a05d9ff96aae5412b9d5cf5c47e10ccce5a75;p=lilypond.git diff --git a/lily/page-spacing-result.cc b/lily/page-spacing-result.cc index 7e42dc96cb..b1d5a2310b 100644 --- a/lily/page-spacing-result.cc +++ b/lily/page-spacing-result.cc @@ -1,18 +1,31 @@ -/* - page-spacing-result.cc -- implement Page_spacing_result - - source file of the GNU LilyPond music typesetter - - (c) 2007 Han-Wen Nienhuys +/* + This file is part of LilyPond, the GNU music typesetter. + + Copyright (C) 2007--2009 Han-Wen Nienhuys + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "page-spacing-result.hh" +#include Page_spacing_result::Page_spacing_result () { penalty_ = 0; demerits_ = infinity_f; + system_count_status_ = SYSTEM_COUNT_OK; } vsize @@ -47,6 +60,6 @@ Page_spacing_result::print () const { printf ("penalty %lf, demerits %lf\n" , penalty_, demerits_); for (vsize i = 0; i < page_count (); i++) - printf (" %d: #sys=%d, force=%lf\n", i, systems_per_page_[i], + printf (" %d: #sys=%d, force=%lf\n", int (i), int (systems_per_page_[i]), force_[i]); }