if (crosstab.getColumns().isEmpty()){
throw new LayoutException("Crosstabs must have at least one column");
}
if (crosstab.getRows().isEmpty()){
throw new LayoutException("Crosstabs must have at least one row");
<BUG>}
for (Iterator iterator = crosstab.getColumns().iterator(); iterator.hasNext();) {
DJCrosstabColumn col = (DJCrosstabColumn) iterator.next();</BUG>
if (col.getWidth() == -1 && cellWidth != -1)
col.setWidth(cellWidth);

if (crosstab.getColumns().isEmpty()){
throw new LayoutException("Crosstabs must have at least one column");
}
if (crosstab.getRows().isEmpty()){
throw new LayoutException("Crosstabs must have at least one row");
}
for (DJCrosstabColumn col : crosstab.getColumns()) {
if (col.getWidth() == -1 && cellWidth != -1)
col.setWidth(cellWidth);
