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