Pman.Gnumeric.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 10 Sep 2010 02:40:05 +0000 (10:40 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 10 Sep 2010 02:40:05 +0000 (10:40 +0800)
Pman.Gnumeric.js

index d7fee90..9e0f0d3 100644 (file)
@@ -462,7 +462,12 @@ Roo.extend(Pman.Gnumeric.prototype, Roo.Observable, {
             if (typeof(_this.grid[r]) == 'undefined') continue;
             for (var c = 0; c < this.cmax;c++) {  
                 if (typeof(_this.grid[r][c]) == 'undefined') continue;
-                if (!_this.grid[r][c].value.match(/\{/)) continue;
+                if (
+                        !_this.grid[r][c].value.length 
+                        || !_this.grid[r][c].value.match(/\{/)
+                    ) {
+                        continue;
+                    }
                 
                 var x = new Roo.Template({ html: _this.grid[r][c].value });
                 try {