diff --git a/editor/locale/locale.js b/editor/locale/locale.js index be0a3533..78b8e2d1 100644 --- a/editor/locale/locale.js +++ b/editor/locale/locale.js @@ -43,7 +43,7 @@ var put_locale = function(svgCanvas, given_param){ } $.each(LangData, function(i, data) { if(data.id) { - var elem = $('#'+data.id)[0]; + var elem = $('#svg_editor #'+data.id)[0]; if(elem) { if(data.title) elem.title = data.title; diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 4110e4b8..0036ba91 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -5466,6 +5466,7 @@ function BatchCommand(text) { if (layer == current_layer) { canvas.clearSelection(); + pathActions.clear(); } // call("changed", [selected]);