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");