Commit 6128c4bd authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 32433 - [Copy&Paste JS ошибка после вставки изображения из CDE и undo

parent a77dc773
......@@ -405,7 +405,7 @@ function Editor_Copy(api, bCut)
window["AscDesktopEditor"]["Copy"]();
}
ElemToSelect.innerHTML = "";
return;
}
......@@ -3857,14 +3857,16 @@ PasteProcessor.prototype =
{
if (!(presentationSelectedContent.Drawings[i].Drawing instanceof CGraphicFrame))
{
if (presentationSelectedContent.Drawings[i].Drawing.setBDeleted2)
{
presentationSelectedContent.Drawings[i].Drawing.setBDeleted2(true);
}
else
{
presentationSelectedContent.Drawings[i].Drawing.setBDeleted(true);
}
AscFormat.ExecuteNoHistory(function(){
if (presentationSelectedContent.Drawings[i].Drawing.setBDeleted2)
{
presentationSelectedContent.Drawings[i].Drawing.setBDeleted2(true);
}
else
{
presentationSelectedContent.Drawings[i].Drawing.setBDeleted(true);
}
}, this, []);
presentationSelectedContent.Drawings[i].Drawing = presentationSelectedContent.Drawings[i].Drawing.convertToPPTX(oThis.oDocument.DrawingDocument);
AscFormat.checkBlipFillRasterImages(presentationSelectedContent.Drawings[i].Drawing);
}
......
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