Salome HOME
[Code coverage GeomAlgoAPI]: Increase coverage of NExplode algorithm
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_NExplode.cpp
index 392ac4c4c85dab9d2012ba99eaec6621006b7c8e..01d9fe69241329517fe3c1bd76962ed8f5a30f72 100644 (file)
@@ -124,10 +124,12 @@ bool CompareShapes::operator() (const TopoDS_Shape& theShape1,
           if ((val1 - val2) >= tol) {
             exchange = Standard_True;
           }
+          else // compare adresses if shapes are geometrically equal
+            exchange = theShape1.TShape().get() > theShape2.TShape().get();
         }
       }
     } else // compare adresses if shapes are geometrically equal
-      return theShape1.TShape().get() > theShape2.TShape().get();
+      exchange = theShape1.TShape().get() > theShape2.TShape().get();
   }
 
   //return val1 < val2;