--- loncom/interface/spreadsheet/studentcalc.pm 2005/08/05 20:06:22 1.34 +++ loncom/interface/spreadsheet/studentcalc.pm 2005/08/26 20:46:46 1.35 @@ -1,5 +1,5 @@ # -# $Id: studentcalc.pm,v 1.34 2005/08/05 20:06:22 albertel Exp $ +# $Id: studentcalc.pm,v 1.35 2005/08/26 20:46:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -585,6 +585,7 @@ sub compute { sub set_row_sources { my $self = shift; + $self->check_formulas_loaded(); while (my ($cell,$value) = each(%{$self->{'formulas'}})) { next if ($cell !~ /^A(\d+)$/ || $1 < 1); my $row = $1; @@ -597,6 +598,7 @@ sub set_row_sources { sub set_row_numbers { my $self = shift; + $self->check_formulas_loaded(); while (my ($cell,$formula) = each(%{$self->{'formulas'}})) { next if ($cell !~ /^A(\d+)/); my $row = $1;