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

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

parent a77dc773
...@@ -3857,6 +3857,7 @@ PasteProcessor.prototype = ...@@ -3857,6 +3857,7 @@ PasteProcessor.prototype =
{ {
if (!(presentationSelectedContent.Drawings[i].Drawing instanceof CGraphicFrame)) if (!(presentationSelectedContent.Drawings[i].Drawing instanceof CGraphicFrame))
{ {
AscFormat.ExecuteNoHistory(function(){
if (presentationSelectedContent.Drawings[i].Drawing.setBDeleted2) if (presentationSelectedContent.Drawings[i].Drawing.setBDeleted2)
{ {
presentationSelectedContent.Drawings[i].Drawing.setBDeleted2(true); presentationSelectedContent.Drawings[i].Drawing.setBDeleted2(true);
...@@ -3865,6 +3866,7 @@ PasteProcessor.prototype = ...@@ -3865,6 +3866,7 @@ PasteProcessor.prototype =
{ {
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