|
[yoda-svn] r539 - trunk/include/YODAblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Nov 15 17:25:42 GMT 2012
Author: davemallows Date: Thu Nov 15 17:25:41 2012 New Revision: 539 Log: Fixed Axis2D equality operator Modified: trunk/include/YODA/Axis2D.h Modified: trunk/include/YODA/Axis2D.h ============================================================================== --- trunk/include/YODA/Axis2D.h Thu Nov 15 17:19:36 2012 (r538) +++ trunk/include/YODA/Axis2D.h Thu Nov 15 17:25:41 2012 (r539) @@ -431,10 +431,10 @@ bool operator == (const Axis2D& other) const { for(size_t i=0; i < numBins(); i++) - if (fuzzyEquals(bin(i).lowEdgeX(), other.bin(i).lowEdgeX()) && - fuzzyEquals(bin(i).highEdgeX(), other.bin(i).highEdgeX()) && - fuzzyEquals(bin(i).lowEdgeY(), other.bin(i).lowEdgeY()) && - fuzzyEquals(bin(i).highEdgeY(), other.bin(i).highEdgeY())); + if (!(fuzzyEquals(bin(i).lowEdgeX(), other.bin(i).lowEdgeX()) && + fuzzyEquals(bin(i).highEdgeX(), other.bin(i).highEdgeX()) && + fuzzyEquals(bin(i).lowEdgeY(), other.bin(i).lowEdgeY()) && + fuzzyEquals(bin(i).highEdgeY(), other.bin(i).highEdgeY()))) return false; return true;
More information about the yoda-svn mailing list |