Check that poly_stretch_line exists before hiding

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@501 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-08-30 02:24:20 +00:00
parent f8e513e936
commit bd613bd118
1 changed files with 2 additions and 7 deletions

View File

@ -1701,12 +1701,6 @@ function SvgCanvas(c)
default:
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() {
@ -1715,7 +1709,8 @@ function SvgCanvas(c)
while(i--) {
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() {