Salome HOME
Prevent SIGSEGV
authoreap <eap@opencascade.com>
Mon, 5 Aug 2013 10:58:04 +0000 (10:58 +0000)
committereap <eap@opencascade.com>
Mon, 5 Aug 2013 10:58:04 +0000 (10:58 +0000)
commit27a1dc566b3fbc294fc761f7939a6dec51ecdeb3
treea9bca3a5239a77523634ee1b9f5b35764fbd5a57
parent6399cfb3c4e949a0650705221af708de572736cd
Prevent SIGSEGV
             if ( !anActor ) anActor = SMESH::CreateActor( aMeshSObj->GetStudy(), aMeshSObj->GetID().c_str(), true );
+            if ( anActor ) // actor is not created for an empty mesh
+            {
+              anActor->SetEntityMode( entities );
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx