------------------------------------------------------------
revno: 1581
committer: Jan Henrik Overland <[email protected]>
branch nick: trunk
timestamp: Mon 2010-03-08 16:29:02 +0100
message:
  (GIS) Minor label generator bug fixed.
modified:
  
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/core/GeoStat.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/core/GeoStat.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/core/GeoStat.js	2010-03-02 11:58:13 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/core/GeoStat.js	2010-03-08 15:29:02 +0000
@@ -372,8 +372,11 @@
 		}
 		else {
             var upper = parseFloat(bin.upperBound);
-            if (binIndex < nbBins-1) {
-                upper -= parseFloat("0.1");
+            
+            if (bin.upperBound > bin.lowerBound) {
+                if (binIndex < nbBins-1) {
+                    upper -= parseFloat("0.1");
+                }
             }
             
 			return parseFloat(bin.lowerBound).toFixed(1) + ' - ' + upper.toFixed(1) + '&nbsp;&nbsp; ( ' + bin.nbVal + ' )';

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to