From 1eabe7cef053c67bc983c7b78951c6d32b36a58e Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 15 Apr 2019 12:13:31 +0800 Subject: [PATCH] Pman.Gnumeric.js --- Pman.Gnumeric.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index 8994f00a..bb92cc9d 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1177,11 +1177,10 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { soi.setAttribute('crop-bottom','0.000000'); soi.setAttribute('crop-left','0.000000'); soi.setAttribute('crop-right','0.000000'); - - 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('size-bytes', size); soi.appendChild(content); objs.appendChild(soi); -- 2.39.2