Commit 447cb2e5 authored by SergeyLuzyanin's avatar SergeyLuzyanin

paste in notes

parent 23e1558c
...@@ -4215,8 +4215,8 @@ PasteProcessor.prototype = ...@@ -4215,8 +4215,8 @@ PasteProcessor.prototype =
arrShapes[arrShapes.length] = new DrawingCopyObject(shape, 0, 0, w, h); arrShapes[arrShapes.length] = new DrawingCopyObject(shape, 0, 0, w, h);
} }
var presentation = editor.WordControl.m_oLogicDocument; var presentation = editor.WordControl.m_oLogicDocument;
var slide = presentation.Slides[presentation.CurPage]; var oController = presentation.GetCurrentController();
var targetDocContent = slide.graphicObjects.getTargetDocContent(); var targetDocContent = oController && oController.getTargetDocContent();
if(targetDocContent && arrShapes.length === 1 && arrImages.length === 0 && arrTables.length === 0) if(targetDocContent && arrShapes.length === 1 && arrImages.length === 0 && arrTables.length === 0)
{ {
if(presentation.Document_Is_SelectionLocked(AscCommon.changestype_Drawing_Props) === false) if(presentation.Document_Is_SelectionLocked(AscCommon.changestype_Drawing_Props) === false)
......
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