[fusion-commits] r2013 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Dec 10 18:53:01 EST 2009
Author: waltweltonlair
Date: 2009-12-10 18:53:01 -0500 (Thu, 10 Dec 2009)
New Revision: 2013
Modified:
trunk/widgets/ExtentHistory.js
Log:
Fix #349 (Previous View / Next View don't always work correctly)
Fixed a typo in the boundsEqual method in ExtentHistory.js. The absolute value
calls did not include the denominators.
Modified: trunk/widgets/ExtentHistory.js
===================================================================
--- trunk/widgets/ExtentHistory.js 2009-12-10 09:16:46 UTC (rev 2012)
+++ trunk/widgets/ExtentHistory.js 2009-12-10 23:53:01 UTC (rev 2013)
@@ -156,10 +156,10 @@
b2.right += offset;
}
//calculate difference as percentage so all ranges of coordinates can be accommodated
- equal = (Math.abs(b1.top - b2.top)/b2.top < this.EPS &&
- Math.abs(b1.bottom - b2.bottom)/b2.bottom < this.EPS &&
- Math.abs(b1.left - b2.left)/b2.left < this.EPS &&
- Math.abs(b1.right - b2.right)/b2.right < this.EPS);
+ equal = (Math.abs((b1.top - b2.top) / b2.top) < this.EPS &&
+ Math.abs((b1.bottom - b2.bottom) / b2.bottom) < this.EPS &&
+ Math.abs((b1.left - b2.left) / b2.left) < this.EPS &&
+ Math.abs((b1.right - b2.right) / b2.right) < this.EPS);
return equal;
}
});
More information about the fusion-commits
mailing list