X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fibex%2FBox.java;h=2ada11fffc1d619f9040748ceba98d1f300e1712;hb=a45a8fc2ca7e197f70a1e13ae22d2a49339722f8;hp=fd4e578cc6d3f3d3c30b3d945038b540c704094c;hpb=321bc4ea252adf3fff47494d66938be404fb22b9;p=org.ibex.core.git diff --git a/src/org/ibex/Box.java b/src/org/ibex/Box.java index fd4e578..2ada11f 100644 --- a/src/org/ibex/Box.java +++ b/src/org/ibex/Box.java @@ -294,46 +294,43 @@ public final class Box extends JSScope implements Scheduler.Task { } private static float[] coeff = null; - private static LinearProgramming.Simplex lp_h = new LinearProgramming.Simplex(); - private static LinearProgramming.Problem lpr_h = new LinearProgramming.Problem(50, 50, 300); - private static LinearProgramming.Simplex lp_v = new LinearProgramming.Simplex(); - private static LinearProgramming.Problem lpr_v = new LinearProgramming.Problem(50, 50, 300); + private static LinearProgramming.Simplex lp_h = new LinearProgramming.Simplex(50, 50, 300); + private static LinearProgramming.Simplex lp_v = new LinearProgramming.Simplex(50, 50, 300); void place_children() { int numkids = 0; for(Box c = firstPackedChild(); c != null; c = c.nextPackedSibling()) numkids++; //#repeat col/row colspan/rowspan contentwidth/contentheight width/height \ - // maxwidth/maxheight cols/rows minwidth/minheight lp_h/lp_v lpr_h/lpr_v + // maxwidth/maxheight cols/rows minwidth/minheight lp_h/lp_v lp_h/lp_v do { int nc = numkids * 2 + cols * 3 + 1 + 2; if (coeff == null || nc+1>coeff.length) coeff = new float[nc+1]; - lpr_h.init(nc, nc); + lp_h.init(nc, nc); // objective function for(int i=0; i=child.col && i=child.col && i