Commit 2026334f 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@63333 954022d7-b5bf-4e40-9824-e11837661b57
parent 86315a17
...@@ -1783,21 +1783,20 @@ function TransformPointPolygon(x, y, oPolygon, bFlag, XLimit, ContentHeight, dKo ...@@ -1783,21 +1783,20 @@ function TransformPointPolygon(x, y, oPolygon, bFlag, XLimit, ContentHeight, dKo
if(bFlag) if(bFlag)
{ {
y1 = 0; y1 = 0;
if(/*oBounds*/false) if(oBounds)
{ {
y1 = oBounds.min_y;
}
y0 -= oBounds.min_y; y0 -= oBounds.min_y;
} }
}
else else
{ {
y1 = ContentHeight*dKoeff; y1 = ContentHeight*dKoeff;
if(oBounds) if(oBounds)
{ {
y1 = (oBounds.max_y - oBounds.min_y); y1 = (oBounds.max_y - oBounds.min_y);
}
y0 -= oBounds.min_y; y0 -= oBounds.min_y;
} }
}
cX = x/XLimit; cX = x/XLimit;
oPointOnPolygon = oPolygon.getPointOnPolygon(cX, true); oPointOnPolygon = oPolygon.getPointOnPolygon(cX, true);
x1t = oPointOnPolygon.x; x1t = oPointOnPolygon.x;
......
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