From bcc164d6f89198cdebd2be27198c313211b76a01 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 12 Jan 2010 16:57:15 +0000 Subject: [PATCH] Move populateLayers() to always be called when the svg element has changed git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1200 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );