summaryrefslogtreecommitdiff
path: root/break.cc
diff options
context:
space:
mode:
Diffstat (limited to 'break.cc')
-rw-r--r--break.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/break.cc b/break.cc
index 9eb55cc9f7..e705c546cf 100644
--- 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);