Pman.Gnumeric.js wip_edward_T5780_Printable_versions_1
authorEdward <edward@roojs.com>
Wed, 27 Mar 2019 08:37:43 +0000 (16:37 +0800)
committerEdward <edward@roojs.com>
Wed, 27 Mar 2019 08:37:43 +0000 (16:37 +0800)
Pman.Gnumeric.js

index 16c4a80..75b30bf 100644 (file)
@@ -1401,7 +1401,7 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
         column = column *1; 
         width= width*1;
         if (typeof(this.colInfoDom[column]) == 'undefined') {
-            var cols = this.doc.getElementsByTagNameNS('*','Cols')[0];
+            var cols = this.sheet.getElementsByTagNameNS('*','Cols')[0];
             var ri = this.doc.createElementNS('http://www.gnumeric.org/v10.dtd', 'gnm:ColInfo');
             ri.setAttribute('No', column);
             ri.setAttribute('Unit', width);