added missing base 10 radix
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2389 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
11d58b0ad7
commit
e150132453
|
@ -166,10 +166,10 @@ svgedit.math.transformListToTransform = function(tlist, min, max) {
|
||||||
// Or should tlist = null have been prevented before this?
|
// Or should tlist = null have been prevented before this?
|
||||||
return svg.createSVGTransformFromMatrix(svg.createSVGMatrix());
|
return svg.createSVGTransformFromMatrix(svg.createSVGMatrix());
|
||||||
}
|
}
|
||||||
var min = min == undefined ? 0 : min;
|
min = min || 0;
|
||||||
var max = max == undefined ? (tlist.numberOfItems-1) : max;
|
max = max || (tlist.numberOfItems - 1);
|
||||||
min = parseInt(min);
|
min = parseInt(min, 10);
|
||||||
max = parseInt(max);
|
max = parseInt(max, 10);
|
||||||
if (min > max) { var temp = max; max = min; min = temp; }
|
if (min > max) { var temp = max; max = min; min = temp; }
|
||||||
var m = svg.createSVGMatrix();
|
var m = svg.createSVGMatrix();
|
||||||
for (var i = min; i <= max; ++i) {
|
for (var i = min; i <= max; ++i) {
|
||||||
|
@ -242,5 +242,4 @@ svgedit.math.rectsIntersect = function(r1, r2) {
|
||||||
(r2.y+r2.height) > r1.y;
|
(r2.y+r2.height) > r1.y;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue