dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33808
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17316: GIS equal counts bug fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 17316 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-10-29 18:33:21 +0100
message:
GIS equal counts bug fixed.
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/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-apps/src/main/webapp/dhis-web-mapping/scripts/mapfish/core/GeoStat.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/mapfish/core/GeoStat.js 2012-12-07 17:27:30 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/mapfish/core/GeoStat.js 2014-10-29 17:31:44 +0000
@@ -209,6 +209,10 @@
for (i = 1; i < nbBins; i++) {
bounds[i] = values[binLastValPos];
binLastValPos += binSize;
+
+ if (binLastValPos > values.length - 1) {
+ binLastValPos = values.length - 1;
+ }
}
bounds.push(values[values.length - 1]);
}