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

вставка в PE -> добавлялся лишний пустой шейп

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68747 954022d7-b5bf-4e40-9824-e11837661b57
parent 98fc4400
...@@ -3972,7 +3972,17 @@ PasteProcessor.prototype = ...@@ -3972,7 +3972,17 @@ PasteProcessor.prototype =
arrShapes.push(shape); arrShapes.push(shape);
oThis._ExecutePresentation(node, {}, true, true, false, arrShapes, arrImages, arrTables); oThis._ExecutePresentation(node, {}, true, true, false, arrShapes, arrImages, arrTables);
//если не добавили даные внутрь arrShapes - удаляем пустой CShape
if(arrShapes.length === 1 && arrShapes[0].txBody && arrShapes[0].txBody.content && arrShapes[0].txBody.content.Content && arrShapes[0].txBody.content.Content.length === 1)
{
var txBodyContent = arrShapes[0].txBody.content.Content[0].Content;
if(txBodyContent && txBodyContent.length === 2 && txBodyContent[0].Content && txBodyContent[0].Content.length === 0)
{
arrShapes = [];
}
}
for(var i = 0; i < arrShapes.length; ++i) for(var i = 0; i < arrShapes.length; ++i)
{ {
shape = arrShapes[i]; shape = arrShapes[i];
......
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