Diff for /loncom/interface/spreadsheet/assesscalc.pm between versions 1.39 and 1.40

version 1.39, 2005/04/07 06:56:23 version 1.40, 2005/05/13 21:14:46
Line 814  sub compute { Line 814  sub compute {
 sub sett {  sub sett {
     my $self = shift;      my $self = shift;
     my %t=();      my %t=();
       undef(%Apache::Spreadsheet::sheet_values);
     #      #
     # Deal with the template row by copying the template formulas into each      # Deal with the template row by copying the template formulas into each
     # row.      # row.
Line 840  sub sett { Line 841  sub sett {
  next if ($cell =~ /template_/);   next if ($cell =~ /template_/);
         if ($cell =~ /^A/ && $cell ne 'A0') {          if ($cell =~ /^A/ && $cell ne 'A0') {
             if ($formula !~ /^\!/) {              if ($formula !~ /^\!/) {
                 $t{$cell}=$self->{'constants'}->{$formula};   $Apache::Spreadsheet::sheet_values{$cell}=
       eval($self->{'constants'}->{$formula});
             }              }
         } else {          } else {
             $t{$cell}=$formula;              $t{$cell}=$formula;

Removed from v.1.39  
changed lines
  Added in v.1.40


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>