From 058f87e6151aaf633d92ff7a0337851a4d9defaf Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Tue, 6 Apr 2010 18:36:24 +0000 Subject: [PATCH] Preserve height and width, when re-editing an existing SVG document. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1507 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 87569356..d05d358c 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -6949,6 +6949,8 @@ function BatchCommand(text) { if(diff) continue; } + this.contentW = attrs['width']; + this.contentH = attrs['height']; // else could be a duplicate, iterate through stops var stops = grad.getElementsByTagNameNS(svgns, "stop");