Salome HOME
Bos #20438: [CEA] SIGSEGV in SHAPER and GEOM in Pipe binormal. Correction to obtain...
[modules/geom.git] / src / BuildGUI / BuildGUI_SolidDlg.cxx
index 331f481be0cb2aa1e95b0916a94787ea32e9456f..adcee4f04f4d544f15dd4dc33f886f97fa0c0a50 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -371,24 +371,22 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
   switch (getConstructorId()) {
     case 0:
     {
-       if ( GroupSolid->CheckButton1->isChecked() ) {
-         GEOM::ListOfGO_var objlist = new GEOM::ListOfGO();
-         objlist->length( myShells.count() );
-         for ( int i = 0; i < myShells.count(); i++ )
-               objlist[i] = myShells[i].copy();
-
-         anObj = anOper->MakeSolidShells( objlist.in() );
-
-         if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
-       }
-       else {
-         for ( int i = 0, n = myShells.count(); i< n; i++ ){
-               anObj = anOper->MakeSolidShell( myShells[ i ].get() );
-
-               if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
-         }
-       }
-       break;
+      if ( GroupSolid->CheckButton1->isChecked() ) {
+        GEOM::ListOfGO_var objlist = new GEOM::ListOfGO();
+        objlist->length( myShells.count() );
+        for ( int i = 0; i < myShells.count(); i++ )
+          objlist[i] = myShells[i].copy();
+
+        anObj = anOper->MakeSolidShells( objlist.in() );
+        if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
+      }
+      else {
+        for ( int i = 0, n = myShells.count(); i< n; i++ ) {
+          anObj = anOper->MakeSolidShell( myShells[ i ].get() );
+          if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
+        }
+      }
+      break;
     }
     case 1:
     {
@@ -397,9 +395,9 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
       for ( int i = 0; i < myShells.count(); i++ )
         objlist[i] = myShells[i].copy();
 
-       anObj = anOper->MakeSolidFromConnectedFaces( objlist.in(), GroupFaces->CheckButton1->isChecked() );
+      anObj = anOper->MakeSolidFromConnectedFaces( objlist.in(), GroupFaces->CheckButton1->isChecked() );
+      if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
 
-       if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
       break;
     }
   }