Commit 19e10241 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 24182 - Зависание приложения при вставке автофигуры

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56141 954022d7-b5bf-4e40-9824-e11837661b57
parent dc77de1f
......@@ -60,6 +60,30 @@ StartAddNewShape.prototype =
{
if(this.bStart)
{
if(!this.bMoved && this instanceof StartAddNewShape)
{
var ext_x, ext_y;
if(typeof SHAPE_ASPECTS[this.presetGeom] === "number")
{
var _aspect = SHAPE_ASPECTS[this.graphicObjects.currentPresetGeom];
if(_aspect >= 1)
{
ext_y = 25.4;
ext_x = ext_y*_aspect;
}
else
{
ext_x = 25.4;
ext_y = ext_x/_aspect;
}
}
else
{
ext_x = 25.4;
ext_y = 25.4;
}
this.onMouseMove({IsLocked: true}, this.startX + ext_x, this.startY + ext_y, this.pageIndex);
}
History.Create_NewPoint();
var bounds = this.drawingObjects.arrTrackObjects[0].getBounds();
var shape = this.drawingObjects.arrTrackObjects[0].getShape(true, this.drawingObjects.drawingDocument);
......
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