Commit fd1416ae authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

+ revision 56201

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56202 954022d7-b5bf-4e40-9824-e11837661b57
parent 2c9c7315
...@@ -3042,7 +3042,7 @@ PasteProcessor.prototype = ...@@ -3042,7 +3042,7 @@ PasteProcessor.prototype =
if(copyPasteUseBinery) if(copyPasteUseBinery)
{ {
var base64 = null, base64FromExcel = null,classNode, aContent, aContentExcel; var base64 = null, base64FromExcel = null,classNode, aContent, aContentExcel, pasteFromBinary = false;
if(node.children[0] && node.children[0].getAttribute("class") != null && (node.children[0].getAttribute("class").indexOf("xslData;") > -1 || node.children[0].getAttribute("class").indexOf("docData;") > -1)) if(node.children[0] && node.children[0].getAttribute("class") != null && (node.children[0].getAttribute("class").indexOf("xslData;") > -1 || node.children[0].getAttribute("class").indexOf("docData;") > -1))
classNode = node.children[0].getAttribute("class"); classNode = node.children[0].getAttribute("class");
...@@ -3077,7 +3077,12 @@ PasteProcessor.prototype = ...@@ -3077,7 +3077,12 @@ PasteProcessor.prototype =
if(aContentExcel) if(aContentExcel)
aContent = this._convertExcelBinary(aContentExcel); aContent = this._convertExcelBinary(aContentExcel);
if(aContent) if(base64 != null && aContent)
pasteFromBinary = true;
else if(aContentExcel != null && aContent && aContent.content)
pasteFromBinary = true;
if(pasteFromBinary)
{ {
var fPrepasteCallback = function(){ var fPrepasteCallback = function(){
if(false == oThis.bNested) if(false == oThis.bNested)
...@@ -3865,7 +3870,7 @@ PasteProcessor.prototype = ...@@ -3865,7 +3870,7 @@ PasteProcessor.prototype =
var aContent = null; var aContent = null;
var drawings = aContentExcel.aWorksheets[0].Drawings; var drawings = aContentExcel.aWorksheets[0].Drawings;
if(drawings) if(drawings && drawings.length)
{ {
var drawing, graphicObj, paraRun, tempParaRun; var drawing, graphicObj, paraRun, tempParaRun;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment