Commit 613514c1 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

bug 24971

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57059 954022d7-b5bf-4e40-9824-e11837661b57
parent 14f75ef9
......@@ -1712,7 +1712,7 @@ CAutoshapeTrack.prototype =
if (x1 <= x2 && y1 <= y2)
{
for (var i = x1, j = y1; i < x2 && j < y2; i += len_x2, j += len_y2)
for (var i = x1, j = y1; i <= x2 && j <= y2; i += len_x2, j += len_y2)
{
ctx.moveTo(i, j);
......@@ -1729,7 +1729,7 @@ CAutoshapeTrack.prototype =
}
else if (x1 <= x2 && y1 > y2)
{
for (var i = x1, j = y1; i < x2 && j > y2; i += len_x2, j -= len_y2)
for (var i = x1, j = y1; i <= x2 && j >= y2; i += len_x2, j -= len_y2)
{
ctx.moveTo(i, j);
......@@ -1746,7 +1746,7 @@ CAutoshapeTrack.prototype =
}
else if (x1 > x2 && y1 <= y2)
{
for (var i = x1, j = y1; i > x2 && j < y2; i -= len_x2, j += len_y2)
for (var i = x1, j = y1; i >= x2 && j <= y2; i -= len_x2, j += len_y2)
{
ctx.moveTo(i, j);
......@@ -1763,7 +1763,7 @@ CAutoshapeTrack.prototype =
}
else
{
for (var i = x1, j = y1; i > x2 && j > y2; i -= len_x2, j -= len_y2)
for (var i = x1, j = y1; i >= x2 && j >= y2; i -= len_x2, j -= len_y2)
{
ctx.moveTo(i, j);
......
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