From: enk Date: Tue, 7 Mar 2006 12:11:17 +0000 (+0000) Subject: Fixed Bug IPAL11054: X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b49d04d08922851ec0964079d550c73d8a8a09d;p=modules%2Fsmesh.git Fixed Bug IPAL11054: Application crashes if you set "-8" as f(t) in "Exponent" mode in "Hypothesis Construction" --- diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index e3ebcd75f..e58be313b 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -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)