package org.basex.gui.view.map;
public abstract class MapAlgo {
static double lineRatio(final MapRects r) {
<BUG>if (r.size() == 0) return Double.MAX_VALUE;
double ar = 0;
for(int i = 0; i < r.size(); i++) {
if (r.get(i).w != 0 && r.get(i).h != 0) {

if (r.get(i).w > r.get(i).h) {

ar += r.get(i).w / r.get(i).h;
} else {
ar += r.get(i).h / r.get(i).w;
}</BUG>
}

package org.basex.gui.view.map;
public abstract class MapAlgo {
static double lineRatio(final MapRects r) {
if(r.size() == 0) return Double.MAX_VALUE;
double ar = 0;
double dev = 0;
for(MapRect rect : r) {
if(rect.w != 0 && rect.h != 0) {
double d = rect.w * rect.h;
dev += d;
if(rect.w > rect.h) {
ar += d * rect.w / rect.h;
} else {
ar += d * rect.h / rect.w;
