Commit 9cfffe0a 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@53054 954022d7-b5bf-4e40-9824-e11837661b57
parent 5c69c6cd
......@@ -27,6 +27,9 @@ function Path(extrusionOk, fill, stroke, w, h)
if(this.pathW!=undefined)
{
this.divPW = 1/w;
}
if(this.pathH != undefined)
{
this.divPH = 1/h;
}
......@@ -308,14 +311,20 @@ Path.prototype = {
var ch, cw;
if(this.pathW!=undefined)
{
ch = (gdLst["h"]/this.pathH);
cw = (gdLst["w"]/this.pathW);
}
else
{
ch=1;
cw=1;
}
if(this.pathH!=undefined)
{
ch = (gdLst["h"]/this.pathH);
}
else
{
ch=1;
}
var APCI=this.ArrPathCommandInfo, n = APCI.length, cmd;
var x0, y0, x1, y1, x2, y2, wR, hR, stAng, swAng, lastX, lastY;
for(var i=0; i<n; i++)
......@@ -527,13 +536,19 @@ Path.prototype = {
var ch, cw;
if(this.pathW!=undefined)
{
ch = (gdLst["h"]/this.pathH);
cw = (gdLst["w"]/this.pathW);
}
else
{
ch = 1;
cw = 1;
cw=1;
}
if(this.pathH!=undefined)
{
ch = (gdLst["h"]/this.pathH);
}
else
{
ch=1;
}
var APCI=this.ArrPathCommandInfo, n = APCI.length, cmd;
var x0, y0, x1, y1, x2, y2, wR, hR, stAng, swAng, lastX, lastY;
......
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