Check that poly_stretch_line exists before hiding

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@501 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-08-30 02:24:20 +00:00
parent f8e513e936
commit bd613bd118

View File

@@ -1701,12 +1701,6 @@ function SvgCanvas(c)
default: default:
break; break;
} }
// TODO: should we fire the change event here? I'm thinking only fire
// this event when the user mouses up. That's when the action (create,
// move, resize, draw) has finished
// Only question is whether in Wave Gadget mode whether we want to see the
// person live-dragging the element around (for instance)
// call("changed", selected);
}; };
var removeAllPointGripsFromPoly = function() { var removeAllPointGripsFromPoly = function() {
@@ -1715,7 +1709,8 @@ function SvgCanvas(c)
while(i--) { while(i--) {
document.getElementById("polypointgrip_"+i).setAttribute("display", "none"); document.getElementById("polypointgrip_"+i).setAttribute("display", "none");
} }
document.getElementById("poly_stretch_line").setAttribute("display", "none"); var line = document.getElementById("poly_stretch_line");
if (line) line.setAttribute("display", "none");
}; };
var addAllPointGripsToPoly = function() { var addAllPointGripsToPoly = function() {