From 8923f6d746b932577e3e32f650384c119b94f6da Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Mon, 17 Aug 2009 03:57:43 +0000 Subject: [PATCH] Fix bug when in polyedit mode and clicking the Poly tool, would add points to the current poly being edited git-svn-id: http://svg-edit.googlecode.com/svn/trunk@396 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 2f106832..89a49c87 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1875,6 +1875,11 @@ function SvgCanvas(c) current_poly = null; current_poly_pts = []; } + else if (current_mode == "polyedit") { + removeAllPointGripsFromPoly(); + current_poly = null; + current_poly_pts = []; + } current_mode = name; };