From a6edbc58bb3a98673aed6f759f2448a5aa40b60e Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Tue, 19 Jan 2010 14:03:10 +0000 Subject: [PATCH] Fixed issue 420 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1243 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 1 + editor/svgcanvas.js | 1 + 2 files changed, 2 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 098aabee..12f2a70d 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -1052,6 +1052,7 @@ function svg_edit_setup() { var clickClear = function(){ $.confirm(uiStrings.QwantToClear, function(ok) { if(!ok) return; + setSelectMode(); svgCanvas.clear(); svgCanvas.setResolution(640, 480); updateCanvas(true); diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 01b3fcb0..db366a54 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3304,6 +3304,7 @@ function BatchCommand(text) { // Currently only one node can be selected at a time, should allow more later // Should point be the index or the grip element? + var point = points; // if(!$.isArray(points)) points = [points]; // // $.merge(selected_pts, points);