- if (optimal_paths.top ().demerits_f_ >= infinity_f)
- warning (_ ("No feasible line breaking found"));
-
- for (int i= final_breaks.size (); i--;)
- lines.push (optimal_paths[final_breaks[i]].line_config_);
-
+ if (be_verbose_global)
+ {
+ message (_f ("Optimal demerits: %f",
+ optimal_paths.top ().demerits_) + "\n");
+ }
+
+ if (optimal_paths.top ().demerits_ >= infinity_f)
+ warning (_ ("no feasible line breaking found"));
+
+ for (int i = final_breaks.size (); i--;)
+ {
+ Column_x_positions cp (optimal_paths[final_breaks[i]].line_config_);
+
+ lines.push (cp);
+ if (!cp.satisfies_constraints_)
+ warning (_ ("can't find line breaking that satisfies constraints"));
+ }