--- loncom/xml/londefdef.pm 2007/06/26 01:20:35 1.370 +++ loncom/xml/londefdef.pm 2007/06/26 01:36:48 1.371 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.370 2007/06/26 01:20:35 albertel Exp $ +# $Id: londefdef.pm,v 1.371 2007/06/26 01:36:48 albertel Exp $ # # # Copyright Michigan State University Board of Trustees @@ -2258,6 +2258,9 @@ sub end_table { for (my $i=0;$i<=$#fwidth;$i++) { $current+=$fwidth[$i]; } + if ($current == 0) { + $current = $Apache::londefdef::table[-1]{'width'}; + } my $coef=$Apache::londefdef::table[-1]{'width'}/$current; for (my $i=0;$i<=$#fwidth;$i++) { $fwidth[$i]*=$coef;