diff --git a/editor/images/path.png b/editor/images/fhpath.png similarity index 100% rename from editor/images/path.png rename to editor/images/fhpath.png diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 14339ca4..ffaeeaa5 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -267,7 +267,7 @@ script type="text/javascript" src="locale/locale.min.js">
Select
- Pencil
+ Pencil
Line
Square diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 7d7bbd41..01af9c6d 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -562,9 +562,9 @@ function svg_edit_setup() { } }; - var clickPath = function() { - if (toolButtonClick('#tool_path')) { - svgCanvas.setMode('path'); + var clickFHPath = function() { + if (toolButtonClick('#tool_fhpath')) { + svgCanvas.setMode('fhpath'); } }; @@ -882,7 +882,7 @@ function svg_edit_setup() { }); $('#tool_select').click(clickSelect); - $('#tool_path').click(clickPath); + $('#tool_fhpath').click(clickFHPath); $('#tool_line').click(clickLine); $('#tool_square').mouseup(clickSquare); $('#tool_rect').mouseup(clickRect); @@ -971,7 +971,7 @@ function svg_edit_setup() { function setKeyBindings() { var keys = [ ['1', clickSelect], - ['2', clickPath], + ['2', clickFHPath], ['3', clickLine], ['Shift+4', clickSquare], ['4', clickRect], diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index d407b18f..1f7feba3 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1534,7 +1534,7 @@ function BatchCommand(text) { break; case "fhellipse": case "fhrect": - case "path": + case "fhpath": started = true; start_x = x; start_y = y; @@ -2014,7 +2014,7 @@ function BatchCommand(text) { freehand_min_y = Math.min(y, freehand_min_y); freehand_max_y = Math.max(y, freehand_max_y); // break; missing on purpose - case "path": + case "fhpath": start_x = x; start_y = y; d_attr += + x + "," + y + " "; @@ -2600,7 +2600,7 @@ function BatchCommand(text) { 'height': Math.abs(y-start_y) }); return; - case "path": + case "fhpath": // Check that the path contains at least 2 points; a degenerate one-point path // causes problems. // Webkit ignores how we set the points attribute with commas and uses space