(int) (ml.weight[i] / weight * ww);
w = w > 0 ? w : 1;
if(x + w <= xx + ww) tmp.add(new MapRect((int) x, (int) yy, w, height,
ml.list[i], l));
x += w;
<BUG>}
if(lineRatio(tmp) > lineRatio(row)) {

rects.add(row);
hh -= row.get(0).h;</BUG>
yy += row.get(0).h;

(int) (ml.weight[i] / weight * ww);
w = w > 0 ? w : 1;
if(x + w <= xx + ww) tmp.add(new MapRect((int) x, (int) yy, w, height,
ml.list[i], l));
x += w;
}
tmpratio = lineRatio(tmp);
if(tmpratio > lineRatio(row)) {
rects.add(row);
rowratio = Double.MAX_VALUE;
hh -= row.get(0).h;
yy += row.get(0).h;
