]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for RedHat8.0 Bug IPAL10936:
authorenk <enk@opencascade.com>
Fri, 27 Jan 2006 09:27:34 +0000 (09:27 +0000)
committerenk <enk@opencascade.com>
Fri, 27 Jan 2006 09:27:34 +0000 (09:27 +0000)
  Polygonal face cannot be selected

src/SMESHGUI/SMESHGUI_RemoveElementsDlg.cxx

index c27acbb0843f35adcff435ef54d4873591209853..ef6dfa0d2d7a312d7143597e4782023dafd82f93 100644 (file)
@@ -45,6 +45,7 @@
 #include "SVTK_ViewWindow.h"
 #include "SALOME_ListIO.hxx"
 
+#include "SalomeApp_Tools.h"
 #include "utilities.h"
 
 // OCCT Includes
@@ -257,7 +258,11 @@ void SMESHGUI_RemoveElementsDlg::ClickOnApply()
     try {
       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
       aResult = aMeshEditor->RemoveElements(anArrayOfIdeces.inout());
-    } catch (...) {
+    } catch (const SALOME::SALOME_Exception& S_ex) {
+      SalomeApp_Tools::QtCatchCorbaException(S_ex);
+      myEditCurrentArgument->clear();
+    } catch (...){
+      myEditCurrentArgument->clear();
     }
 
     if (aResult) {