X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_TranslationDlg.cxx;h=1abc292e4d407878da371ac1b7bc5aabe3be2d7b;hp=ca047bcb8e591d56cd132939e8e216615fb8959c;hb=2cbc0e004d9802964be66ecb762c58c126cbb023;hpb=a541c7e70ec1a55557f54bceeae9bd4833628b71;ds=sidebyside diff --git a/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx b/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx index ca047bcb8..1abc292e4 100644 --- a/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx @@ -592,8 +592,10 @@ bool SMESHGUI_TranslationDlg::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 ) {