Fix Issue 402: Freehand tools maxy not being reset

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1265 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-01-21 02:48:02 +00:00
parent 05941d2a13
commit 47a0faf93b

View File

@@ -2333,16 +2333,16 @@ function BatchCommand(text) {
// Mouse events // Mouse events
(function() { (function() {
var d_attr = null; var d_attr = null,
var start_x = null; start_x = null,
var start_y = null; start_y = null,
var init_bbox = {}; init_bbox = {},
var freehand = { freehand = {
minx: null, minx: null,
miny: null, miny: null,
maxx: null, maxx: null,
maxy: null maxy: null
}; };
// - when we are in a create mode, the element is added to the canvas // - when we are in a create mode, the element is added to the canvas
// but the action is not recorded until mousing up // but the action is not recorded until mousing up
@@ -2512,7 +2512,7 @@ function BatchCommand(text) {
freehand.minx = x; freehand.minx = x;
freehand.maxx = x; freehand.maxx = x;
freehand.miny = y; freehand.miny = y;
freehand.miny = y; freehand.maxy = y;
break; break;
case "image": case "image":
started = true; started = true;