X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=linespace.hh;h=e5b23ca7f0504a829424cd54c1a47187695de3a3;hb=74e0f769a23454f038d20270463c734a9c22f5f9;hp=5a3c4edeb88303aec5b17f51592aed9d54f5bee8;hpb=3daac955f29e408aa2aa271a883195ddc54633f4;p=lilypond.git diff --git a/linespace.hh b/linespace.hh index 5a3c4edeb8..e5b23ca7f0 100644 --- a/linespace.hh +++ b/linespace.hh @@ -4,7 +4,7 @@ #include "glob.hh" #include "list.hh" #include "vray.hh" -#include "cols.hh" +#include "pcol.hh" #include "matrix.hh" /// helper struct for #Spacing_problem# @@ -12,10 +12,7 @@ struct Colinfo { const PCol *col; bool fixed; Real fixpos; - Colinfo() { - fixed=false; - col=0; - } + Colinfo(); void print() const; Real minright()const { return col->width().max; } Real minleft()const { return -col->width().min; } @@ -42,7 +39,7 @@ class Spacing_problem { void make_matrices(Matrix &quad, Vector &lin,Real&) const; /// generate the LP constraints - void make_constraints(Optimisation_problem& lp) const; + void make_constraints(Mixed_qp& lp) const; public: /// solve the spacing problem