[Mapbender-commits] r5806 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Mar 17 10:18:02 EDT 2010


Author: christoph
Date: 2010-03-17 10:18:02 -0400 (Wed, 17 Mar 2010)
New Revision: 5806

Modified:
   trunk/mapbender/http/javascripts/wms.js
Log:


Modified: trunk/mapbender/http/javascripts/wms.js
===================================================================
--- trunk/mapbender/http/javascripts/wms.js	2010-03-17 14:07:09 UTC (rev 5805)
+++ trunk/mapbender/http/javascripts/wms.js	2010-03-17 14:18:02 UTC (rev 5806)
@@ -168,7 +168,7 @@
 			var bbox_miny = parseFloat(this.gui_miny[i]);
 			var bbox_maxx = parseFloat(this.gui_maxx[i]);
 			var bbox_maxy = parseFloat(this.gui_maxy[i]);
-			if (bbox_minx !== null && bbox_miny !== null && bbox_maxx !== null && bbox_maxy !== null) {
+			if (!isNaN(bbox_minx) && !isNaN(bbox_miny) && !isNaN(bbox_maxx) && !isNaN(bbox_maxy)) {
 				return new Extent(bbox_minx, bbox_miny, bbox_maxx, bbox_maxy);
 			}
 		}



More information about the Mapbender_commits mailing list