Commit b712a0f9 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with resizing autoshapes.

parent a7f864ed
......@@ -1264,7 +1264,7 @@ ParaDrawing.prototype.Set_XYForAdd = function(X, Y, NearPos, PageNum)
var Layout = NearPos.Paragraph.Get_Layout(NearPos.ContentPos, this);
this.private_SetXYByLayout(X, Y, PageNum, Layout, true, true);
var nRecalcIndex = -1;
var nRecalcIndex = null;
var oLogicDocument = this.document;
if (oLogicDocument)
{
......@@ -1274,7 +1274,7 @@ ParaDrawing.prototype.Set_XYForAdd = function(X, Y, NearPos, PageNum)
this.SetSkipOnRecalculate(false);
}
if (-1 !== nRecalcIndex)
if (null !== nRecalcIndex)
oLogicDocument.Get_History().SetRecalculateIndex(nRecalcIndex);
Layout = NearPos.Paragraph.Get_Layout(NearPos.ContentPos, this);
......@@ -1300,7 +1300,7 @@ ParaDrawing.prototype.Set_XY = function(X, Y, Paragraph, PageNum, bResetAlign)
var Layout = Paragraph.Get_Layout(ContentPos, this);
this.private_SetXYByLayout(X, Y, PageNum, Layout, (bResetAlign || true !== this.PositionH.Align ? true : false), (bResetAlign || true !== this.PositionV.Align ? true : false));
var nRecalcIndex = -1;
var nRecalcIndex = null;
var oLogicDocument = this.document;
if (oLogicDocument)
{
......@@ -1310,7 +1310,7 @@ ParaDrawing.prototype.Set_XY = function(X, Y, Paragraph, PageNum, bResetAlign)
this.SetSkipOnRecalculate(false);
}
if (-1 !== nRecalcIndex)
if (null !== nRecalcIndex)
oLogicDocument.Get_History().SetRecalculateIndex(nRecalcIndex);
Layout = Paragraph.Get_Layout(ContentPos, this);
......
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