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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Tue Oct 26 09:27:13 CDT 2010


Author: janehu
Date: 2010-10-26 09:27:13 -0500 (Tue, 26 Oct 2010)
New Revision: 4239

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Fixed nightly run failure.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2010-10-25 14:21:09 UTC (rev 4238)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2010-10-26 14:27:13 UTC (rev 4239)
@@ -2451,7 +2451,7 @@
           DLIList<CubitBox*> bs;
           edge_lists.reset();
           CubitBox box;
-          for(int i = 0; i < size, size > 1; i++)
+          for(int i = 0; i < size && size > 1; i++)
           {
             edge_list = edge_lists.get_and_step();
             for(int j = 0; j < edge_list->size(); j++)
@@ -2493,7 +2493,7 @@
               }
             }
           }
-          for(int i = 0; i < size, size > 1; i++)
+          for(int i = 0; i < size && size > 1; i++)
             delete bs.pop();
 
           edge_lists.remove_all_with_value((DLIList<TopoDS_Edge*>*)NULL);































More information about the cgma-dev mailing list