]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-score.cc
* lily/include/constrained-breaking.hh (class
[lilypond.git] / lily / paper-score.cc
index 5f7e1540df1be0fa81ba6c17826cef5b50d99bda..330bf3ae4965dde62c1b75e4023ab747bd7ae420 100644 (file)
@@ -63,8 +63,16 @@ Paper_score::calc_breaking ()
 {
   Break_algorithm *algorithm = 0;
   vector<Column_x_positions> sol;
-
-  algorithm = new Gourlay_breaking;
+  
+  int system_count = robust_scm2int (layout ()->c_variable ("system-count"), 0);
+  if (system_count)
+    {
+      Constrained_breaking *b = new Constrained_breaking;
+      algorithm = b;
+    }
+  else
+    algorithm = new Gourlay_breaking;
+  
   algorithm->set_pscore (this);
   sol = algorithm->solve ();
   delete algorithm;