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
master
Jeff Schiller 2010-01-12 16:57:15 +00:00
parent a2557bbc98
commit bcc164d6f8
1 changed files with 1 additions and 1 deletions

View File

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