Commit 86227f42 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

правка падения при вставке картинок в presentation

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61842 954022d7-b5bf-4e40-9824-e11837661b57
parent 22954347
...@@ -2934,7 +2934,10 @@ PasteProcessor.prototype = ...@@ -2934,7 +2934,10 @@ PasteProcessor.prototype =
SetShortImageId: function(aPastedImages) SetShortImageId: function(aPastedImages)
{ {
for(var i = 0, length = aPastedImages.length; i < length; ++i) if(!aPastedImages)
return;
for(var i = 0, length = aPastedImages.length; i < length; ++i)
{ {
var imageElem = aPastedImages[i]; var imageElem = aPastedImages[i];
if(null != imageElem) if(null != imageElem)
...@@ -3196,7 +3199,7 @@ PasteProcessor.prototype = ...@@ -3196,7 +3199,7 @@ PasteProcessor.prototype =
} }
else else
{ {
this.SetShortImageId(aContent.aPastedImages); oThis.SetShortImageId(aContent.aPastedImages);
oThis.api.pre_Paste(aContent.fonts, aContent.images, fPrepasteCallback); oThis.api.pre_Paste(aContent.fonts, aContent.images, fPrepasteCallback);
} }
return; return;
...@@ -4446,7 +4449,7 @@ PasteProcessor.prototype = ...@@ -4446,7 +4449,7 @@ PasteProcessor.prototype =
} }
else else
{ {
this.SetShortImageId(aContent.aPastedImages); oThis.SetShortImageId(aContent.aPastedImages);
oThis.api.pre_Paste(aContent.fonts, aContent.images, paste_callback); oThis.api.pre_Paste(aContent.fonts, aContent.images, paste_callback);
} }
......
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