Commit 0ad1c794 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

баг с врапом

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61165 954022d7-b5bf-4e40-9824-e11837661b57
parent d0dc654a
......@@ -23155,9 +23155,9 @@ CTitle.prototype =
{
return this.chart && this.chart.getCanvasContext();
},
convertPixToMM: function()
convertPixToMM: function(pix)
{
return this.chart && this.chart.convertPixToMM();
return this.chart && this.chart.convertPixToMM(pix);
},
getDrawingDocument: function()
{
......
......@@ -605,9 +605,15 @@ CWrapPolygon.prototype =
calculateRelToAbs: function(transform, drawing)
{
var bounds = drawing.bounds, oDistance = drawing.parent.Get_Distance();
if(this.relativeArrPoints.length === 0)
{
this.arrPoints.length = 0;
this.localLeft = bounds.l - oDistance.L;
this.localRight = bounds.r + oDistance.R;
this.localTop = bounds.t - oDistance.T;
this.localBottom = bounds.b + oDistance.B;
return;
}
var relArr = this.relativeArrPoints;
......@@ -641,12 +647,6 @@ CWrapPolygon.prototype =
max_y = absPoint.y;
}
var bounds = {}, oDistance = drawing.parent.Get_Distance();
bounds.l = drawing.bounds.l;
bounds.t = drawing.bounds.t;
bounds.r = drawing.bounds.r;
bounds.b = drawing.bounds.b;
if(bounds.l < min_x)
this.localLeft = bounds.l - oDistance.L;
else
......@@ -666,7 +666,6 @@ CWrapPolygon.prototype =
this.localBottom = bounds.b + oDistance.B;
else
this.localBottom = max_y + oDistance.B;
this.rect_flag = this.isRect();
},
calculateAbsToRel: function(drawing, aPoints)
......
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