r5528 - cgm/branches/merge-cubit13.1/geom/OCC
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);
participants (1)
-
jiangtao_ma@yahoo.com