From 86d573dd835018ad60bffedc0fe4137481e7a9cf Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 4 Oct 2006 16:02:45 +0000 Subject: [PATCH] Test for null. Testing for existence means that when we pass toBBOX(0), we want to round to whole numbers, not to 6 decimal places. (Thanks tschaub.) git-svn-id: http://svn.openlayers.org/trunk/openlayers@1561 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/BaseTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index d42ae9e962..64c58ec2e3 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -366,7 +366,7 @@ OpenLayers.Bounds.prototype = { */ toBBOX:function(power) { var mult; - if (power) { + if (power != null) { mult = Math.pow(10,power); } else { mult = Math.pow(10,6);