]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.4
authorfred <fred>
Sat, 19 Oct 1996 15:15:19 +0000 (15:15 +0000)
committerfred <fred>
Sat, 19 Oct 1996 15:15:19 +0000 (15:15 +0000)
break.cc

index 9eb55cc9f78f6f269c6141213731803753b21454..e705c546cfe4cd0227baac0a0a42b86bbe38f7ce 100644 (file)
--- a/break.cc
+++ b/break.cc
@@ -29,12 +29,12 @@ PScore::solve_line(svec<const PCol *> curline) const
 
 
 void
-PScore::problem_OK() 
+PScore::problem_OK() const
 {
     if (!cols.size())
        error("PScore::problem_OK(): Score does not have any columns");
     PCursor<PCol *> start(cols);
-    PCursor<PCol *> end (cols.bottom());
+    PCursor<PCol *> end (((PScore*)this)->cols.bottom());
     
     assert(start->breakable);    
     assert(end->breakable);
@@ -67,6 +67,7 @@ struct Col_configuration {
 void
 PScore::calc_breaking()
 {
+    OK();
     problem_OK();
     PCursor<PCol *> curcol(cols);