Commit 651e938d 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@47551 954022d7-b5bf-4e40-9824-e11837661b57
parent 6646d4db
......@@ -5,7 +5,7 @@ function HitInLine(context, px, py, x0, y0, x1, y1)
ty=y1-y0;
d=1.5/Math.sqrt(tx*tx+ty*ty);
if(typeof global_mouseEvent.KoefPixToMM === "number" && !isNaN(global_mouseEvent.KoefPixToMM))
if(global_mouseEvent !== null && typeof global_mouseEvent === "object" && typeof global_mouseEvent.KoefPixToMM === "number" && !isNaN(global_mouseEvent.KoefPixToMM))
d *= global_mouseEvent.KoefPixToMM;
dx=-ty*d;
......@@ -28,7 +28,7 @@ function HitInBezier4(context, px, py, x0, y0, x1, y1, x2, y2, x3, y3)
ty=y3-y0;
d=1.5/Math.sqrt(tx*tx+ty*ty);
if(typeof global_mouseEvent.KoefPixToMM === "number" && !isNaN(global_mouseEvent.KoefPixToMM))
if(global_mouseEvent !== null && typeof global_mouseEvent === "object" && typeof global_mouseEvent.KoefPixToMM === "number" && !isNaN(global_mouseEvent.KoefPixToMM))
d *= global_mouseEvent.KoefPixToMM;
dx=-ty*d;
......@@ -51,7 +51,7 @@ function HitInBezier3(context, px, py, x0, y0, x1, y1, x2, y2)
ty=y2-y0;
d=1.5/Math.sqrt(tx*tx+ty*ty);
if(typeof global_mouseEvent.KoefPixToMM === "number" && !isNaN(global_mouseEvent.KoefPixToMM))
if(global_mouseEvent !== null && typeof global_mouseEvent === "object" && typeof global_mouseEvent.KoefPixToMM === "number" && !isNaN(global_mouseEvent.KoefPixToMM))
d *= global_mouseEvent.KoefPixToMM;
dx=-ty*d;
......
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