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-75d572ba1dddmaster
parent
a2557bbc98
commit
bcc164d6f8
|
@ -209,6 +209,7 @@ function svg_edit_setup() {
|
||||||
var vb = elem.getAttribute("viewBox").split(' ');
|
var vb = elem.getAttribute("viewBox").split(' ');
|
||||||
changeResolution(parseInt(vb[2]),
|
changeResolution(parseInt(vb[2]),
|
||||||
parseInt(vb[3]));
|
parseInt(vb[3]));
|
||||||
|
populateLayers();
|
||||||
}
|
}
|
||||||
// Update selectedElement if element is no longer part of the image.
|
// Update selectedElement if element is no longer part of the image.
|
||||||
// This occurs for the text elements in Firefox
|
// This occurs for the text elements in Firefox
|
||||||
|
@ -1949,7 +1950,6 @@ function svg_edit_setup() {
|
||||||
|
|
||||||
var fileOpen = function(window, str) {
|
var fileOpen = function(window, str) {
|
||||||
svgCanvas.setSvgString(str);
|
svgCanvas.setSvgString(str);
|
||||||
populateLayers();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$(window).resize( centerCanvasIfNeeded );
|
$(window).resize( centerCanvasIfNeeded );
|
||||||
|
|
Loading…
Reference in New Issue