Fix breakage two revisions ago. Add base raw import of SVG file into current layer (very broken at the moment).

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1421 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-02-21 01:12:59 +00:00
parent 37aab7dd8f
commit cc20d81633
2 changed files with 129 additions and 5 deletions

View File

@@ -1460,7 +1460,7 @@ function svg_edit_setup() {
svgCanvas.open();
};
var clickImport = function(){
svgCanvas.open();
svgCanvas.import();
};
var clickUndo = function(){
@@ -2705,7 +2705,7 @@ function svg_edit_setup() {
if(this.files.length==1) {
var reader = new FileReader();
reader.onloadend = function(e) {
svgCanvas.setSvgString(e.target.result);
svgCanvas.importSvgString(e.target.result);
updateCanvas();
};
reader.readAsText(this.files[0]);