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);