From b34d721491405cf902e06ec68bd490bf371939cb Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sat, 15 Jan 2011 06:40:37 +0000 Subject: [PATCH] Remove unused exportNoImage warning. Fix translation string when converting a use-symbol into a group git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1915 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/document.js | 2 ++ editor/svgcanvas.js | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/document.js b/editor/document.js index 83843c18..d01989bd 100644 --- a/editor/document.js +++ b/editor/document.js @@ -7,6 +7,8 @@ */ /* + TODO: consider renaming this package to "draw" and the class to "Drawing" + TODOs: Phase 1: diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3a7990c3..5dc08b08 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -490,7 +490,6 @@ var uiStrings = { "pathNodeTooltip": "Drag node to move it. Double-click node to change segment type", "pathCtrlPtTooltip": "Drag control point to adjust curve properties", "exportNoBlur": "Blurred elements will appear as un-blurred", - "exportNoImage": "Image elements will not appear", "exportNoforeignObject": "foreignObject elements will not appear", "exportNoDashArray": "Strokes will appear filled", "exportNoText": "Text may not appear as expected" @@ -6576,7 +6575,7 @@ var convertToGroup = this.convertToGroup = function(elem) { var pos = $elem.attr(['x','y']); // Not ideal, but works - ts += "translate(" + (pos.x || 0) + "," + (pos.y || 0) + ")"; + ts += " translate(" + (pos.x || 0) + "," + (pos.y || 0) + ")"; var prev = $elem.prev(); @@ -6852,7 +6851,6 @@ this.setSvgString = function(xmlString) { this.importSvgString = function(xmlString) { try { - // Get unique ID var uid = svgedit.utilities.encode64(xmlString.length + xmlString).substr(0,32); @@ -6937,9 +6935,9 @@ this.importSvgString = function(xmlString) { var use_el = svgdoc.createElementNS(svgns, "use"); + use_el.id = getNextId(); setHref(use_el, "#" + symbol.id); - use_el.id = getNextId(); (current_group || current_layer).appendChild(use_el); batchCmd.addSubCommand(new InsertElementCommand(use_el)); clearSelection();