Made updateGripCursors work with negative angle values

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@485 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-08-27 12:37:02 +00:00
parent 3bb5c42198
commit 841d1c24d3
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}