[cgma-dev] r2815 - cgm/trunk/geom/OCC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Mon Apr 13 10:09:22 CDT 2009


Author: janehu
Date: 2009-04-13 10:09:21 -0500 (Mon, 13 Apr 2009)
New Revision: 2815

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Fixed the wrong use of the for statement.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2009-04-10 22:35:18 UTC (rev 2814)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2009-04-13 15:09:21 UTC (rev 2815)
@@ -2616,7 +2616,7 @@
 	    }
 	  }
         }
-        for(int k = 0; count_intersection < 3, k < distShapeShape.NbSolution(); k++)
+        for(int k = 0; count_intersection < 3 && k < distShapeShape.NbSolution(); k++)
         {
           if (qualified[k])
             count_intersection++;



More information about the cgma-dev mailing list