Commit fdb3a45c authored by Sergey Luzyanin's avatar Sergey Luzyanin

Не выставлялся extent

parent 0dbbbca1
......@@ -807,7 +807,7 @@ DrawingObjectsController.prototype =
createWatermarkImage: function(sImageUrl)
{
return ExecuteNoHistory(function(){
return this.createImage(sImageUrl, 0, 0, 45.6, 101.6);
return this.createImage(sImageUrl, 0, 0, 101.6, 45.6);
}, this, []);
},
......
......@@ -2120,8 +2120,8 @@ CTableId.prototype.Load_Changes = function(Reader, Reader2)
var oFirstParagraph = oLogicDocument.Get_FirstParagraph();
ExecuteNoHistory(function(){
var oRun = new ParaRun();
oRun.Content.splice(0, oParaDrawing);
oFirstParagraph.Content.splice(0, oRun);
oRun.Content.splice(0, 0, oParaDrawing);
oFirstParagraph.Content.splice(0, 0, oRun);
}, this, []);
}
else if(oLogicDocument instanceof CPresentation)
......
......@@ -331,6 +331,9 @@ CGraphicObjects.prototype =
oParaDrawing.Set_WrappingType(WRAPPING_TYPE_NONE);
oParaDrawing.Set_BehindDoc( false );
oParaDrawing.Set_Distance( 3.2, 0, 3.2, 0 );
oParaDrawing.Set_DrawingType(drawing_Anchor);
oParaDrawing.Extent.W = 101.6;
oParaDrawing.Extent.H = 45.6;
var oShape = this.createWatermarkImage(sImageUrl);
oShape.setParent(oParaDrawing);
oParaDrawing.Set_GraphicObject(oShape);
......
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