From 841d1c24d3c081d34fe3d26ca8e2ed870bfe5515 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 27 Aug 2009 12:37:02 +0000 Subject: [PATCH] Made updateGripCursors work with negative angle values git-svn-id: http://svg-edit.googlecode.com/svn/trunk@485 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 944b7bf1..477ea81b 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -288,6 +288,7 @@ function SvgCanvas(c) this.updateGripCursors = function(angle) { var dir_arr = []; var steps = Math.round(angle / 45); + if(steps < 0) steps += 8; for (dir in this.selectorGrips) { dir_arr.push(dir); }