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 = ...@@ -23155,9 +23155,9 @@ CTitle.prototype =
{ {
return this.chart && this.chart.getCanvasContext(); 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() getDrawingDocument: function()
{ {
......
...@@ -605,9 +605,15 @@ CWrapPolygon.prototype = ...@@ -605,9 +605,15 @@ CWrapPolygon.prototype =
calculateRelToAbs: function(transform, drawing) calculateRelToAbs: function(transform, drawing)
{ {
var bounds = drawing.bounds, oDistance = drawing.parent.Get_Distance();
if(this.relativeArrPoints.length === 0) if(this.relativeArrPoints.length === 0)
{ {
this.arrPoints.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; return;
} }
var relArr = this.relativeArrPoints; var relArr = this.relativeArrPoints;
...@@ -641,12 +647,6 @@ CWrapPolygon.prototype = ...@@ -641,12 +647,6 @@ CWrapPolygon.prototype =
max_y = absPoint.y; 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) if(bounds.l < min_x)
this.localLeft = bounds.l - oDistance.L; this.localLeft = bounds.l - oDistance.L;
else else
...@@ -666,7 +666,6 @@ CWrapPolygon.prototype = ...@@ -666,7 +666,6 @@ CWrapPolygon.prototype =
this.localBottom = bounds.b + oDistance.B; this.localBottom = bounds.b + oDistance.B;
else else
this.localBottom = max_y + oDistance.B; this.localBottom = max_y + oDistance.B;
this.rect_flag = this.isRect();
}, },
calculateAbsToRel: function(drawing, aPoints) 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