Salome HOME
- if ( theNbSegments )
authoreap <eap@opencascade.com>
Fri, 22 Jan 2010 11:34:11 +0000 (11:34 +0000)
committereap <eap@opencascade.com>
Fri, 22 Jan 2010 11:34:11 +0000 (11:34 +0000)
+  if ( theNbSegments > 0 )
     myGen.SetDefaultNbSegments( int(theNbSegments) );
   else
     THROW_SALOME_CORBA_EXCEPTION( "non-positive number of segments", SALOME::BAD_PARAM );

src/SMESH_I/SMESH_Gen_i.cxx

index 52bf0094880be4c14facda3ff1264f1406ad9980..c644c20875c70c718f68ac84f39b406cec2a2fd2 100644 (file)
@@ -791,7 +791,7 @@ void SMESH_Gen_i::SetBoundaryBoxSegmentation( CORBA::Long theNbSegments )
 void SMESH_Gen_i::SetDefaultNbSegments(CORBA::Long theNbSegments)
   throw ( SALOME::SALOME_Exception )
 {
-  if ( theNbSegments )
+  if ( theNbSegments > 0 )
     myGen.SetDefaultNbSegments( int(theNbSegments) );
   else
     THROW_SALOME_CORBA_EXCEPTION( "non-positive number of segments", SALOME::BAD_PARAM );
@@ -1690,9 +1690,6 @@ SMESH::long_array* SMESH_Gen_i::Evaluate(SMESH::SMESH_Mesh_ptr theMesh,
           nbels[i] += aVec[i];
         }
       }
-#ifdef _DEBUG_
-      cout<<endl;
-#endif
       return nbels._retn();
     }
   }