[fusion-commits] r2280 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Nov 19 11:33:09 EST 2010
Author: madair
Date: 2010-11-19 08:33:09 -0800 (Fri, 19 Nov 2010)
New Revision: 2280
Modified:
trunk/widgets/Measure.js
Log:
re ofsc #70: error in precision property
Modified: trunk/widgets/Measure.js
===================================================================
--- trunk/widgets/Measure.js 2010-11-19 16:28:23 UTC (rev 2279)
+++ trunk/widgets/Measure.js 2010-11-19 16:33:09 UTC (rev 2280)
@@ -611,10 +611,10 @@
this.totalDistanceMarker.domObj.style.display = 'block';
this.totalDistanceMarker.setQuantity(totalDistance);
- if (this.distancePrecision == 0) {
+ if (this.distPrecision == 0) {
totalDistance = Math.floor(totalDistance);
} else {
- totalDistance = totalDistance.toPrecision(this.areaPrecision);
+ totalDistance = totalDistance.toPrecision(this.distPrecision);
}
this.totalLength = totalDistance;
}
More information about the fusion-commits
mailing list