[fusion-commits] r2096 - sandbox/adsk/2.2gp/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Mar 11 00:18:08 EST 2010
Author: liuar
Date: 2010-03-11 00:18:07 -0500 (Thu, 11 Mar 2010)
New Revision: 2096
Modified:
sandbox/adsk/2.2gp/widgets/Measure.js
Log:
Port fix to the adsk branch
Fixed ticket #366 Measure: wrong length and segments displayed when measure with a line
Modified: sandbox/adsk/2.2gp/widgets/Measure.js
===================================================================
--- sandbox/adsk/2.2gp/widgets/Measure.js 2010-03-11 05:16:53 UTC (rev 2095)
+++ sandbox/adsk/2.2gp/widgets/Measure.js 2010-03-11 05:18:07 UTC (rev 2096)
@@ -298,6 +298,9 @@
quantity = Fusion.convert(measureUnits, this.units, quantity);
}
} else {
+ if(geom.getArea() == 0)
+ return;
+
var cg = geom.getCentroid();
at = this.getMap().geoToPix(cg.x, cg.y);
quantity = geom.getGeodesicArea(proj);
More information about the fusion-commits
mailing list