From bd613bd118fe95d43dd6658c9cdc2b80ed29e821 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sun, 30 Aug 2009 02:24:20 +0000 Subject: [PATCH] Check that poly_stretch_line exists before hiding git-svn-id: http://svg-edit.googlecode.com/svn/trunk@501 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 0887185d..861ad471 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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() {