Salome HOME
0021920: [CEA 689] Get some measure functions on groups available in GUI and TUI
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ComputeDlg.cxx
index 0415094f1ecd255e4279fc3eaef0dc4b500ae8af..26180bedb0f5776844a86e39b1240c9dba024f6b 100644 (file)
@@ -906,10 +906,11 @@ void SMESHGUI_BaseComputeOp::computeMesh()
 #endif
             SMESH_Actor *anActor = SMESH::FindActorByObject( myMesh );
             if ( !anActor ) anActor = SMESH::CreateActor( aMeshSObj->GetStudy(), aMeshSObj->GetID().c_str(), true );    
-
-            anActor->SetEntityMode( entities );
-            SMESH::DisplayActor( SMESH::GetActiveWindow(), anActor );
-
+            if ( anActor ) // actor is not created for an empty mesh
+            {
+              anActor->SetEntityMode( entities );
+              SMESH::DisplayActor( SMESH::GetActiveWindow(), anActor );
+            }
             SMESH::Update(myIObject, true);
 
             if ( limitExceeded )