From b64caf38087d75a51e47c9e3fbeb302682a830cb Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 15 Apr 2019 11:48:47 +0800 Subject: [PATCH] Pman.Gnumeric.js --- Pman.Gnumeric.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index e881e6cf..b7d9387e 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1248,7 +1248,7 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { * writeFixedImageOld: * write an image in old gnumberic format (needs base64 data to write it) */ - writeFixedImageOld : function (startCol, startRow, endCol, endRow, type, data, width, height) + writeFixedImageOld : function (startCol, startRow, endCol, endRow, type, data, width, height, size) { if (!data) { throw "write Image called with missing data"; @@ -1274,10 +1274,11 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { soi.setAttribute('crop-left','0.000000'); soi.setAttribute('crop-right','0.000000'); - var name = 'Image' + Math.random().toString(36).substring(2); +// var name = 'Image' + Math.random().toString(36).substring(2); var content = this.doc.createElement('Content'); content.setAttribute('image-type', type ? type : 'jpeg'); - content.setAttribute('name', name); + +// content.setAttribute('name', name); soi.appendChild(content); objs.appendChild(soi); -- 2.39.2