]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fixed Bug IPAL11054:
authorenk <enk@opencascade.com>
Tue, 7 Mar 2006 12:11:17 +0000 (12:11 +0000)
committerenk <enk@opencascade.com>
Tue, 7 Mar 2006 12:11:17 +0000 (12:11 +0000)
Application crashes if you set "-8" as f(t) in "Exponent" mode in "Hypothesis Construction"

src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx

index e3ebcd75f78854e0f723aaef0f8b2f2fb9f74610..e58be313b07e36bafe76793c031bc1e4c1465789 100644 (file)
@@ -334,6 +334,10 @@ bool StdMeshersGUI_DistrPreview::convert( double& v ) const
     {
       CASCatch_TRY
       { 
+       // in StdMeshers_NumberOfSegments.cc
+       // const double PRECISION = 1e-7;
+       //
+       if(v < -7) v = -7.0;
        v = pow( 10.0, v );
       }
       CASCatch_CATCH(Standard_Failure)