[cgma-dev] r5528 - cgm/branches/merge-cubit13.1/geom/OCC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Mon May 21 10:08:36 CDT 2012


Author: janehu
Date: 2012-05-21 10:08:35 -0500 (Mon, 21 May 2012)
New Revision: 5528

Modified:
   cgm/branches/merge-cubit13.1/geom/OCC/OCCModifyEngine.cpp
Log:
Trying to fix the problem reported by Rajeev about a crash on Mac OSX.

Modified: cgm/branches/merge-cubit13.1/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/branches/merge-cubit13.1/geom/OCC/OCCModifyEngine.cpp	2012-05-18 21:51:19 UTC (rev 5527)
+++ cgm/branches/merge-cubit13.1/geom/OCC/OCCModifyEngine.cpp	2012-05-21 15:08:35 UTC (rev 5528)
@@ -1902,7 +1902,8 @@
     }
   }
 
-  if(!new_body && OCCQueryEngine::instance()->OCCMap->IsBound(*theCS))
+  if(!new_body && theCS && !theCS->IsNull() &&
+     OCCQueryEngine::instance()->OCCMap->IsBound(*theCS))
   {
     BRepBuilderAPI_Copy api_copy(*theCS);
 







































More information about the cgma-dev mailing list