[Mapbender-commits] r5415 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 25 04:35:22 EST 2010


Author: christoph
Date: 2010-01-25 04:35:21 -0500 (Mon, 25 Jan 2010)
New Revision: 5415

Modified:
   branches/2.6/http/javascripts/mod_back.php
Log:


Modified: branches/2.6/http/javascripts/mod_back.php
===================================================================
--- branches/2.6/http/javascripts/mod_back.php	2010-01-25 09:35:02 UTC (rev 5414)
+++ branches/2.6/http/javascripts/mod_back.php	2010-01-25 09:35:21 UTC (rev 5415)
@@ -73,10 +73,14 @@
 function mod_back_set(){
 	if(mod_back_img_previous ==  mod_back_img_off.src){
 		var ind = getMapObjIndexByName(mod_back_map);
+		var cnt = mb_mapObj[ind].mb_MapHistoryObj.length - 2;
+		if (cnt < 0) {
+			return;
+		}
+
 		if(mb_mapObj[ind].mb_MapFutureObj){
 			mb_mapObj[ind].mb_setFutureObj(mod_back_cnt);
 		}
-		var cnt = mb_mapObj[ind].mb_MapHistoryObj.length - 2;
 		if(mb_mapObj[ind].epsg != mb_mapObj[ind].mb_MapHistoryObj[cnt].epsg){
 			var oind = getMapObjIndexByName(mod_back_overview);
 			for(var i=0; i < mb_mapObj[oind].mb_MapHistoryObj.length; i++){



More information about the Mapbender_commits mailing list