diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 1031e97f..206cb316 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -209,6 +209,7 @@ function svg_edit_setup() { var vb = elem.getAttribute("viewBox").split(' '); changeResolution(parseInt(vb[2]), parseInt(vb[3])); + populateLayers(); } // Update selectedElement if element is no longer part of the image. // This occurs for the text elements in Firefox @@ -1949,7 +1950,6 @@ function svg_edit_setup() { var fileOpen = function(window, str) { svgCanvas.setSvgString(str); - populateLayers(); }; $(window).resize( centerCanvasIfNeeded );