Prevented NaN values when selecting fit-to zoom options, made first layer be renamed on language change
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1107 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -5101,6 +5101,7 @@ function BatchCommand(text) {
|
||||
var spacer = .85;
|
||||
var bb;
|
||||
var calcZoom = function(bb) {
|
||||
if(!bb) return false;
|
||||
var w_zoom = Math.round((editor_w / bb.width)*100 * spacer)/100;
|
||||
var h_zoom = Math.round((editor_h / bb.height)*100 * spacer)/100;
|
||||
var zoomlevel = Math.min(w_zoom,h_zoom);
|
||||
|
||||
Reference in New Issue
Block a user