Salome HOME
Fix regression (SIGSEGV) caused by improvement 0022099
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_RotationDlg.cxx
index 4c495d65e24c83a390e483210df7bf0e32fc6ba7..c451a29c4653085edb1a164a6f716bb822fc1410 100644 (file)
@@ -525,8 +525,10 @@ bool SMESHGUI_RotationDlg::ClickOnApply()
     } catch (...) {
     }
 
-    for ( int i = 0; i < myMeshes.count(); i++ ) 
-      SMESH::Update( (SMESH::FindActorByObject( myMeshes[i] ))->getIO(), true );
+    for ( int i = 0; i < myObjects.count(); i++ ) {
+      SMESH_Actor* actor = SMESH::FindActorByObject( myObjects[i] );
+      if ( actor ) SMESH::Update( actor->getIO(), true );
+    }
    
     if ( ( MakeGroupsCheck->isEnabled() && MakeGroupsCheck->isChecked() ) ||
          actionButton == MAKE_MESH_BUTTON ) {