Commit f4f504e3 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 31143 - [Drug&Drop] JS ошибка "py" после drug&drop изображения в заголовок диаграммы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66878 954022d7-b5bf-4e40-9824-e11837661b57
parent 78898c08
...@@ -1189,8 +1189,17 @@ CGraphicObjects.prototype = ...@@ -1189,8 +1189,17 @@ CGraphicObjects.prototype =
var content = this.getTargetDocContent(); var content = this.getTargetDocContent();
if(content) if(content)
{ {
if(!content.bPresentation){
content.Add_InlineImage(W, H, Img, Chart, bFlow ); content.Add_InlineImage(W, H, Img, Chart, bFlow );
} }
else{
if(this.selectedObjects.length > 0)
{
this.resetSelection2();
this.document.Add_InlineImage(W, H, Img, Chart, bFlow );
}
}
}
else else
{ {
if(this.selectedObjects[0] && this.selectedObjects[0].parent && this.selectedObjects[0].parent.Is_Inline()) if(this.selectedObjects[0] && this.selectedObjects[0].parent && this.selectedObjects[0].parent.Is_Inline())
......
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