[LON-CAPA-cvs] cvs: loncom /interface lonspreadsheet.pm

matthew lon-capa-cvs@mail.lon-capa.org
Fri, 27 Sep 2002 20:40:19 -0000


matthew		Fri Sep 27 16:40:19 2002 EDT

  Modified files:              
    /loncom/interface	lonspreadsheet.pm 
  Log:
  Can now enter 0 in spreadsheet cells and have it show up.
  
  
Index: loncom/interface/lonspreadsheet.pm
diff -u loncom/interface/lonspreadsheet.pm:1.111 loncom/interface/lonspreadsheet.pm:1.112
--- loncom/interface/lonspreadsheet.pm:1.111	Fri Sep 27 14:29:15 2002
+++ loncom/interface/lonspreadsheet.pm	Fri Sep 27 16:40:19 2002
@@ -1,5 +1,5 @@
 #
-# $Id: lonspreadsheet.pm,v 1.111 2002/09/27 18:29:15 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.112 2002/09/27 20:40:19 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -852,7 +852,7 @@
     }
     # Deal with the normal cells
     foreach (keys(%f)) {
-	if (($f{$_}) && ($_!~/template\_/)) {
+	if (exists($f{$_}) && ($_!~/template\_/)) {
             my $matches=($_=~/^$pattern(\d+)/);
             if  (($matches) && ($1)) {
 	        unless ($f{$_}=~/^\!/) {