Commit 933b174d authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

заглушки для copy/paste.(проверка наличия класса + проверки наличия объектов)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55940 954022d7-b5bf-4e40-9824-e11837661b57
parent b3e55de9
......@@ -3845,6 +3845,8 @@ function ParaDrawing(W, H, GraphicObj, DrawingDocument, DocumentContent, Parent)
this.selectX = 0;
this.selectY = 0;
this.wrappingType = WRAPPING_TYPE_THROUGH;
if(typeof CWrapPolygon !== "undefined")
this.wrappingPolygon = new CWrapPolygon(this);
this.document = editor.WordControl.m_oLogicDocument;
......@@ -3879,6 +3881,7 @@ function ParaDrawing(W, H, GraphicObj, DrawingDocument, DocumentContent, Parent)
//------------------------------------------------------------
g_oTableId.Add( this, this.Id );
if(this.graphicObjects)
this.graphicObjects.addGraphicObject(this);
}
......@@ -6036,6 +6039,7 @@ ParaDrawing.prototype =
setZIndex: function()
{
var data = {Type:historyitem_Drawing_SetZIndex, oldIndex: this.RelativeHeight};
if(this.mainGraphicObjects)
this.RelativeHeight = ++this.mainGraphicObjects.maximalGraphicObjectZIndex;
data.newIndex = this.RelativeHeight;
History.Add(this, data);
......@@ -6650,7 +6654,7 @@ ParaDrawing.prototype =
init: function()
{
this.calculateAfterOpen();
if(this.RelativeHeight > editor.WordControl.m_oLogicDocument.DrawingObjects.maximalGraphicObjectZIndex)
if(editor.WordControl.m_oLogicDocument.DrawingObjects && this.RelativeHeight > editor.WordControl.m_oLogicDocument.DrawingObjects.maximalGraphicObjectZIndex)
editor.WordControl.m_oLogicDocument.DrawingObjects.maximalGraphicObjectZIndex = this.RelativeHeight;
},
......
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