From 7e8745f875d7e3cfaa5f9e0b9c6890f77718fec4 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 28 Aug 2012 20:54:57 -0300 Subject: [PATCH] Bug message: Uncaught y must be defined, line:8, :http://app.wisemapping.com/js/core.js TypeError: Cannot call method 'eval' of null --- mindplot/src/main/javascript/util/Shape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/util/Shape.js b/mindplot/src/main/javascript/util/Shape.js index ad990e4a..ddbd9787 100644 --- a/mindplot/src/main/javascript/util/Shape.js +++ b/mindplot/src/main/javascript/util/Shape.js @@ -47,7 +47,7 @@ mindplot.util.Shape = var size = topic.getSize(); var position = topic.getPosition(); var div = (position.x - controlPoint.x); - div = (Math.mod(div) > 0.1 ? div : 0.1); // Prevent division by 0. + div = (Math.abs(div) > 0.1 ? div : 0.1); // Prevent division by 0. var m = (position.y - controlPoint.y) / div; var y, x;